I fixed it!!! bb_cookie.php
<?php /* This file is part of miniBB. miniBB is free discussion forums/message board software, without any warranty. See COPYING file for more details. Copyright (C) 2004 Paul Puzyrev, Sergei Larionov. www.minibb.com */ if (!defined('INCLUDED776')) die ('Fatal error.');
//echo $guessurl;
$cookieexptime=time()+$cookie_expires;
function user_logged_in() {
if(isset($GLOBALS['cook']) and trim($GLOBALS['cook'])!='') { $c=explode('|',$GLOBALS['cook']); } elseif(isset($_SESSION['user_id'])) $c=explode('|',$_SESSION['name']); else $c=getMyCookie();
$username=$c[0]; $userpassword=$c[1]; $exptime=$c[2];
$returned=FALSE; $resetCookie=FALSE;
if($username=='') { $returned=FALSE; return; }
$GLOBALS['user_usr']=$username;
} ?>
thanks :) |