Fatal error: Call to undefined function session_is_registered() in C:\xampp\htdocs\x_habbo_servercore\CORE-QatIbJqiE3d8fayOMfWBmYxYP.php on line 194
if(session_is_registered('username')){
$rawname = FilterText($_SESSION['username']);
$rawpass = FilterText($_SESSION['password']);
$usersql = mysql_query("SELECT * FROM users WHERE username = '".$rawname."' AND password = '".$rawpass."' LIMIT 1");
$myrow = mysql_fetch_assoc($usersql);
$password_correct = mysql_num_rows($usersql);
$my_id = $myrow['id'];
$user_rank = $myrow['rank'];
$ban = mysql_query("SELECT expire,reason FROM bans WHERE value = '".$myrow['username']."' AND bantype = 'user' or value = '".$remote_ip."' AND bantype = 'ip' ORDER BY id DESC LIMIT 1");
if($password_correct !== 1){
@session_destroy();
header("location: ".$path."?error=account_error");
exit;
}elseif(mysql_num_rows($ban) > 0){
$bandata = mysql_fetch_assoc($ban);
$timestamp = time();
if($bandata['expire'] > $timestamp){
$login_error = "Du bist gebannt! Der Grund für deinen Bann lautet \"".$bandata['reason']."\" und dauert bis ".date('d.m.Y - H:i:s', $bandata['expire'])."";
@session_destroy();
@require_once('logout.php'); exit;
}
}
$logged_in = true;
$name = HoloText($myrow['username']);
} else {
$user_rank = 0;
$name = "No-Name";
$my_id = "0";
$myticket = "ST-No-Name-habbore-fe";
$logged_in = false;
$myrow['theme'] = "default";
}