diff --git a/relikt.php b/relikt.php index 03c6c9e..06a9c59 100644 --- a/relikt.php +++ b/relikt.php @@ -1,4 +1,4 @@ - 0)) header("Location: index.php"); include "config.php"; -$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;")); +#$user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '{$_SESSION['uid']}' LIMIT 1;")); include "functions.php"; if ($user['battle'] != 0) { header('location: fbattle.php'); @@ -12,34 +12,14 @@ if ($user['in_tower'] == 1) { header('Location: towerin.php'); die(); } -$al = mysql_fetch_assoc(mysql_query("SELECT * FROM `aligns` WHERE `align` = '{$user['align']}' LIMIT 1;")); +$al = db::c()->query('SELECT `accses` FROM `aligns` WHERE `align` = ?i',$user['align'])->fetch_assoc(); header("Cache-Control: no-cache"); ?> - - - - - - - + + +