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
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: 25366
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 
Top Posters Last 30 Days
AllenAyres 83
Gizmo 27
sirdude 24
Zarzal 23
blaaskaak 11
swebs 6
willing 5
Who's Online
1 Registered (gliderdad79), 50 Guests and 11 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Nice Ajax Chat
by Thelockman
07/06/08 09:07 AM
[7.x] UBB.Post Templates v0.1
by sirdude
07/05/08 12:48 PM
Team UBBDev Rides Again!
by AllenAyres
07/04/08 10:56 PM
[7.3.x] ubb.links
by AllenAyres
07/03/08 06:15 PM
Changing currency for subscriptions?
by AllenAyres
07/03/08 01:15 PM
Protect users emails
by AllenAyres
07/03/08 11:36 AM
VPS and Newbies
by Gizmo
07/02/08 09:08 PM
New Mods
Protect users emails
by Basil Fawlty
06/29/08 08:44 AM
[7.3.x] Scheduled board close for backup
by blaaskaak
06/26/08 04:01 AM
[7.3+] CustomTag - Audo Embedding
by Gizmo
06/24/08 07:52 PM
[7.3.x] ubb.links
by AllenAyres
06/20/08 11:50 PM
[7.3] Dissallow quotes more then 3 levels deep
by blaaskaak
06/09/08 09:01 AM
Newest Members
ryzilla, M4D, Jer, Kanigo2, Bubba
13302 Registered Users

 

 

 
fusionbb message board php hacks