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:
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