diff --git a/orden.php b/orden.php index 3812182..b7d020a 100644 --- a/orden.php +++ b/orden.php @@ -4,7 +4,8 @@ if(!isset($_SESSION['uid'])) header("Location: index.php"); include("config.php"); include("functions.php"); 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 = mysql_fetch_assoc(mysql_query("SELECT * FROM `aligns` WHERE `align` = '{$user['align']}' LIMIT 1")); +$al = db::c()->query('SELECT `accses`,`name` FROM `aligns` WHERE `align` = ?i', $user['align'])->fetch_assoc(); header("Cache-Control: no-cache"); # Защита для свитков. @@ -28,9 +29,9 @@ $arr = array( ); ?> - - - + + +