Log in

View Full Version : How to Exclude a PHP script from WOL????


xug
10-18-2004, 06:59 PM
Please help.

I have seen the answer somewhere but I can't find it anymore.

I would like to add some kind of instruction to an external php script, in this case a signature php script called signature.php, that it make this script not showing up on the Who's OnLine (WOL) page.

Or any other trick is welcome.

Is there any body out there that knows the solution or can point me out where to find

Xenon
10-18-2004, 07:03 PM
you have to put
define('LOCATION_BYPASS', 1);

into your script before the require global.php :)

Boofo
10-18-2004, 08:02 PM
you have to put
define('LOCATION_BYPASS', 1);

into your script before the require global.php :)Will that work if you have the file located in the online.php, too?

Xenon
10-18-2004, 08:38 PM
well it should as the bypass has nothing to to with online.php but with session.php :).

btw you should change your usertitle ;)

Andreas
10-18-2004, 08:39 PM
Yes, as this causes session.php to not update the the field location in table session..
So it doesn't matter if there is a handler for that specific file in online.php or not.

xug
10-20-2004, 03:28 AM
Xenon, thanks for your reply.

It works like a charm, thank you so much!

Xenon
10-20-2004, 05:30 PM
you're welcome :)