diff --git a/admin/admin.php b/admin/admin.php index 1dd3b24..60d88ee 100644 --- a/admin/admin.php +++ b/admin/admin.php @@ -7,7 +7,7 @@ session_start(); //require_once '../functions.php'; -$user = new User($_SESSION['uid']); +$user = new \Battles\User($_SESSION['uid']); if (!$user->admin) { header("HTTP/1.0 404 Not Found"); exit; @@ -65,7 +65,7 @@ if ($_POST['ali']) { //Что делает эта штука? } $aligns = db::c()->query('SELECT `img`,`align`,`name` FROM `aligns` ORDER BY `align`'); -Template::header('ᐰdminка'); +\Battles\Template::header('ᐰdminка'); ?>
@@ -554,7 +554,7 @@ foreach ($moj as $k => $v) { $magic_name = "Лечение"; break; case "al_neut_power": - $script_name = "RunMagicSelf"; + $script_name = "RunmagicSelf"; $magic_name = "Сила нейтралитета"; break; case "ct1": @@ -733,7 +733,7 @@ echo ""; - + @@ -960,7 +960,7 @@ if ($_POST['login'] && $_POST['krest']) { Hint3Closed = false; } - function RunMagicSelf(title, magic, name) { + function RunmagicSelf(title, magic, name) { document.all("hint3").innerHTML = '
' + title + 'x
' + '
' + 'Использовать возможность "Сила Нейтралитета?"
' + diff --git a/admin/edit_user.php b/admin/edit_user.php index 01cce2b..7439908 100644 --- a/admin/edit_user.php +++ b/admin/edit_user.php @@ -45,7 +45,7 @@ if ($del) { } db::c()->query('DELETE FROM `inventory` WHERE `id` = ?i', $del); } -Template::header('ᐰdminка инвентаря'); +\Battles\Template::header('ᐰdminка инвентаря'); ?>

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

diff --git a/akadem.php b/akadem.php index 6854393..5621241 100644 --- a/akadem.php +++ b/akadem.php @@ -79,7 +79,7 @@ if ($get == 'exit') { db::c()->query('UPDATE `users`,`online` SET `users`.`room` = 2702, `online`.`room` = 2702 WHERE `users`.`id` = ?i AND `online`.`id` = ?i', $user->id, $user->id); header('Location: city.php'); } -Template::header('Академия'); +\Battles\Template::header('Академия'); ?>
diff --git a/aren_of_angels.php b/aren_of_angels.php index d174cda..5bb5531 100644 --- a/aren_of_angels.php +++ b/aren_of_angels.php @@ -126,7 +126,7 @@ if (isset($_GET['append'])) { } } } -Template::header('Арена Ангелов'); +\Battles\Template::header('Арена Ангелов'); ?>