php forum
php mysql forum
php mysql smarty
 
Page 4 of 4 < 1 2 3 4
Topic Options
#312796 - 01/19/07 12:56 PM Re: [6.7] [beta] User Online [Re: AllenAyres]
Wayne Harris Offline
Lurker

Registered: 01/18/07
Posts: 3

   Re: [6.7] [beta] User Online to Del.icio.us Add to del.icio.us
  Digg Re: [6.7] [beta] User Online Digg it
When checking my server logs I am receiving an error "502 - Bad Gateway" whenever the online.cgi file is referenced. My server is Win 2003 Enterprise Edition with IIS.

The online.cgi script is as follows ...

#!/usr/bin/perl

# load modules
use strict;

BEGIN {
($0 =~ m!(.*)(\|/)[^/\]+!) && unshift(@INC, $1, "$1$2Modules");
$| = 1;
};
use lib("./Modules", ".");
use UBBCGI qw(:cgi);
use UBBCGI::Carp qw(fatalsToBrowser set_message);

use vars qw(%vars_config %vars_pntf);
require "vars_config.cgi";
require "$vars_config{VariablesPath}/vars_pntf.cgi";

print qq~Content-type: text/html\n\n
var AllImgs = document.body.getElementsByTagName("img");
function ChangeAll(img) {
for(var i=0; i <= AllImgs.length; i++) {
if(AllImgs[i] && AllImgs[i].id == img) {
AllImgs[i].src = '$vars_config{NonCGIURL}/user_online.gif';
AllImgs[i].alt = 'Online';
AllImgs[i].title = 'Online';
} // end if
} // end for
}
~;

if($vars_pntf{Enabled} eq "yes" && -e "$vars_config{CachePath}/pntf/now.cgi") {
do "$vars_config{CachePath}/pntf/now.cgi";
my $load = UBB::PNTF::_load();

foreach my $uniq (keys %{ $load->{uniq}->{logins} }) {
my $user = $load->{uniq}->{logins}->{$uniq}->[0];

# check to see if actual user or if hidden
next if $user eq '' || $load->{uniq}->{logins}->{$uniq}->[2] eq 1;


print qq~ChangeAll('online$user');\n~;
} # end if
} # end if

exit(0);
1;

Top
#312797 - 01/19/07 12:58 PM Re: [6.7] [beta] User Online [Re: Brett]
Wayne Harris Offline
Lurker

Registered: 01/18/07
Posts: 3
I am pretty sure that all of the security settings are correct. The requested url in the log file is /cgi-bin/ubb/online.cgi.

This is where all of my cgi scripts are located. This is also where the online.cgi file resides.

The offline graphic is showing up correctly on my pages and the online.cgi script is being called.

Your suggestions are appreciated.


Edited by Wayne Harris (01/19/07 01:07 PM)

Top
#312842 - 01/21/07 09:38 AM Re: [6.7] [beta] User Online [Re: Wayne Harris]
AllenAyres Administrator Offline
I type Like navaho

Registered: 03/10/00
Posts: 25432
Loc: Texas
Did you update the path to perl to match that of your ultimatebb.cgi file? I used to run ubbdev on a windows server for a few years and I believe the path to perl has to be set (usually something like c:\perl\perl.exe - it's been a while shocked )
_________________________
- Allen wavey
- What Drives You?

Top
Page 4 of 4 < 1 2 3 4


Moderator:  Charles, Gizmo 
Who's Online
0 Registered (), 35 Guests and 5 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Blogs, love em or hate em?
by AllenAyres
10/07/08 02:05 PM
What do you use to edit the files
by Ian_W
10/05/08 03:33 PM
BeyondCompare v3.00
by Ian_W
10/05/08 03:32 PM
Glossy Black Theme with Image Reflection
by Gizmo
10/05/08 02:17 PM
ShareThis
by Gizmo
09/28/08 05:06 AM
[7.3] Viewing MySQL logfiles made easier
by AllenAyres
09/27/08 09:57 PM
Looking for a simple upload script
by Murphdog
09/26/08 08:45 PM
New Mods
[7.3] Viewing MySQL logfiles made easier
by blaaskaak
09/24/08 05:39 PM
[7.3.1] add search to showmembers page
by blaaskaak
09/07/08 04:50 AM
Multiple Identity Detector
by
12/30/06 06:39 PM
Newest Members
pisa666, ghengis317, NitroX, Dogan, EliYah-
13345 Registered Users
Top Posters Last 30 Days
AllenAyres 12
blaaskaak 8
tackaberry 7
FREAK1 6
Gizmo 4
Mike L_dup1 4
Chris Bale 4

 

 

 
fusionbb message board php hacks