NAME: Locking down Who's Online
VERSION: 1.0.0
DESCRIPTION: Restricts the who's online page to registered users only.
WORKING UNDER: UBB.threads 6.2.3
PREREQUISITES: none
AUTHORS: Dalantech
CREDITS:
DEMO:
Who's Online at Da Forum. If you are not registered you'll see an error page.
FILES ALTERED: online.php
DATABASE ALTERED: no
NEW FILES: None.
HISTORY: Initial release.
Backup your online.php file first!
In online.php look for:
<br />// Get the user info<br /> $userob = new user;<br /> $user = $userob -> authenticate("U_TimeOffset,U_Groups");
and under it ADD:
<br /> $Username = $user['U_Username'];<br /><br />// Block if Not Logged in<br />if (!$Username) {<br /> $html = new html;<br /> $html -> not_right('You must <a href="login.php">Login</a> or <a href="newuser.php">Register a Username</a> To use the Who is Online display.',$Cat);<br />}
Save and upload the online.php file to your Threads directory.