Будь проклят тот день, когда я решил ввести неймспейсы...
This commit is contained in:
+2
-2
@@ -5,7 +5,7 @@ if (empty($_SESSION['uid'])) {
|
||||
exit;
|
||||
}
|
||||
include('config.php');
|
||||
$user = new User($_SESSION['uid']);
|
||||
$user = new \Battles\User($_SESSION['uid']);
|
||||
$hostel = mysql_fetch_array(mysql_query('SELECT `id`, `uid`, `type`, `time` FROM `hostel` WHERE `uid` = "' . $user['id'] . '" LIMIT 1'));
|
||||
#include('functions.php');
|
||||
$error = '';
|
||||
@@ -154,7 +154,7 @@ if ($_GET['unsleep'] && $user['sleep'] > 0) {
|
||||
}
|
||||
header('Location: hostel.php');
|
||||
}
|
||||
Template::header('Хостел');
|
||||
\Battles\Template::header('Хостел');
|
||||
?>
|
||||
<script src="js/ajaxLoad.js"></script>
|
||||
<? if (isset($hostel['id'])) { ?>
|
||||
|
||||
Reference in New Issue
Block a user