* Project name: Battles-Game */ session_start(); require_once "../functions.php"; if (empty($user['admin'])) { echo "404 Not Found

Not Found

The requested URL {$_SERVER['SCRIPT_NAME']} was not found on this server.


Apache/2.2.22 (@RELEASE@) Server at Hetzner Datacenter 426
"; exit; } if (isset($_POST['player'])) { $p = db::c()->query('SELECT `id`, `login` FROM `users` WHERE `id` = "?s" OR `login` = "?s"', $_POST['player'], $_POST['player'])->fetch_assoc(); $_SESSION['player_id'] = $p['id']; $_SESSION['player_name'] = $p['login']; } if (isset($_POST['undress_char'])) undressall($_SESSION['player_id']); if (isset($_POST['end'])) { unset($_SESSION['player_id']); unset($_SESSION['player_name']); } if (isset($_SESSION['player_id'])) $inv = db::c()->query('SELECT `id`,`name`,`koll`,`img` FROM `inventory` WHERE `owner` = ?i ORDER BY `id` DESC', $_SESSION['player_id']); if (input::post('del')) { $itemdel = db::c()->query('SELECT `type`,`dressed` FROM `inventory` WHERE `id`=?i', input::post('del'))->fetch_assoc(); if ($itemdel['dressed'] == 1) { dropitem($itemdel['type']); if ($itemdel['type'] == 5) { dropitem(6); dropitem(7); } } db::c()->query('DELETE FROM `inventory` WHERE `id` = ?i', input::post('del')); } ?> ᐰdmin

Администрирование инвентаря

fetch_assoc()): ?>
ID Название Количество Картинка
'>
'>