Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   login page (http://www.bvlist.com/showthread.php?t=3686)

irfan 28th October 2009 23:58

login page
 
hey can sum1 tell me how to hide all pages in tbdev and only display the login page untill they are logged in? its for the tbdev source. thanks

ProCell 31st October 2009 13:42

if it is TBDEV source...
teh logged in return mod should be already installed anyway

search in bittorrent.php for:
PHP Code:

function loggedinorreturn() {
    global 
$CURUSER;
    if (!
$CURUSER) {
        
header("Location: $BASEURL/tbdev08/login.php?returnto=" urlencode($_SERVER["REQUEST_URI"]));
        exit();
    }


if it is already exist... All you need to do is adding:

PHP Code:

loggedinorreturn(); 

after:
PHP Code:

dbconn(); 

in every page that you dont want guests to view it till they login...


if the function is not exist in your bittorrent.php then add it near of your other functions...


i hope i helped you

Marco 30th January 2010 22:52

some help to use this on TS 5.x ?
thanks


All times are GMT +2. The time now is 03:41.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.