Its not in the signup.php its in bittorrent.php
PHP Code:
function logincookie($id, $passhash, $updatedb = 1, $expires = 0x7fffffff)
{
setcookie("uid", $id, $expires, "/", ".swedvdr.org");
setcookie("pass", $passhash, $expires, "/", ".swedvdr.org");
if ($updatedb)
mysql_query("UPDATE users SET last_login = NOW() WHERE id = $id");
}
function logoutcookie() {
setcookie("uid", "", 0x7fffffff, "/", ".swedvdr.org");
setcookie("pass", "", 0x7fffffff, "/", ".swedvdr.org");
setcookie("uid", "", 0x7fffffff, "/");
setcookie("pass", "", 0x7fffffff, "/");
}
function loggedinorreturn() {
global $CURUSER;
if ( strstr( $_SERVER['HTTP_HOST'], 'www.' ) )
{
if (!$CURUSER) {
header("Location: /login.php");
exit();
}
}
else
{
header('HTTP/1.1 301 Moved Permanently');
header('Location: http://www.swedvdr.org' . $_SERVER['REQUEST_URI']);
exit();
}