Файл: public/panel/modules/index.php
Строк: 28
<?php
# Author: Oleg Kulaga (Cyber_Shot);
# Package: WGame Engine;
# Version: 0.1;
define("APP", true);
# Connect config;
require_once ('../../../app/config.php');
# Check user auth;
user_auth(1);
$user = DB::$dbs -> queryFetch("SELECT `access` FROM ". USERS ." WHERE `id` = ?", [$_SESSION['userId']]);
if (empty($user['access']))
{
header("Location: ". DS.HOME.DS. "wgame.main");
exit();
}
unset($user);
view_header('Панель управления | Модули');
?>
<div class="block">
<a href="<?=DS.HOME.DS?>wgame.panel.modules.module?mod=system" class="touchLink"> Системные настройки</a>
<a href="<?=DS.HOME.DS?>wgame.panel.modules.module?mod=auth.signin" class="touchLink"> Вход</a>
<a href="<?=DS.HOME.DS?>wgame.panel.modules.module?mod=auth.signup" class="touchLink"> Регистрация</a>
<a href="<?=DS.HOME.DS?>wgame.panel.modules.module?mod=index" class="touchLink"> Главная</a>
<a href="<?=DS.HOME.DS?>wgame.panel.modules.module?mod=main" class="touchLink"> Главная(для авторизованых)</a>
</div>
<?php
view_footer();