I used miniBB Compiler.
In older version (2.1.4), bb_cookie.php line 31-46 //if ($username==$GLOBALS['admin_usr'] and $userpassword==$GLOBALS['admin_pwd']) { $returned=TRUE; $GLOBALS['logged_user']=0; $GLOBALS['logged_admin']=1; $GLOBALS['user_id']=1;
if($row=db_simpleSelect(0,$GLOBALS['Tu'],$GLOBALS['dbUserSheme']['user_sorttopics'] [1].','.$GLOBALS['dbUserSheme']['lang uage'][1].', '.$GLOBALS['dbUserSheme']['num_posts'][1],$GLOBALS['dbUserId'],'=',1)) $GLOBALS['user_sort']=$row[0]; $GLOBALS['langu']=$row[1]; $GLOBALS['user_num_posts']=$row[2]; $username=$GLOBALS['admin_usr'];
if ($pasttime<=$GLOBALS['cookie_renew']) { // if expiration time of cookie is less than defined in setup, we redefine it below $resetCookie=TRUE; }
}
elseif.......
In the current version miniBb Compiler line 32-56 if ( ($username==$GLOBALS['admin_usr'] OR (isset($GLOBALS['loginsCase']) and $GLOBALS['loginsCase'] and strtolower($username)==strtolower($GLOBALS['admin_usr'] ))) and $userpassword==$user_pwd_cmp) { //if ($username==$GLOBALS['admin_usr'] and $userpassword==$GLOBALS['admin_pwd']) { $returned=TRUE; $GLOBALS['logged_user']=0; $GLOBALS['logged_admin']=1; $GLOBALS['user_id']=1; $username=$GLOBALS['admin_usr']; $GLOBALS['user_online']=$row[3];
if($row=db_simpleSelect(0,$GLOBALS['Tu'],$GLOBALS['dbUserSheme']['user_sorttopics'] [1].','.$GLOBALS['dbUserSheme']['lang uage'][1].', '.$GLOBALS['dbUserSheme']['num_posts'][1].', '.$GLOBALS['dbUserSheme']['user_customonline'][1],$GLOBALS['dbUserId'],'=',1)) { $GLOBALS['user_sort']=$row[0]; $GLOBALS['langu']=$row[1]; $GLOBALS['user_num_posts']=$row[2]; } else{ $GLOBALS['user_sort']=0; $GLOBALS['langu']=$GLOBALS['lang']; $GLOBALS['user_num_posts']=0; }
if ($pasttime<=$GLOBALS['cookie_renew']) { // if expiration time of cookie is less than defined in setup, we redefine it below $resetCookie=TRUE; }
}
elseif.........
Awaiting your reply, Thank you |