Вход Регистрация
Файл: public/auth/exit.php
Строк: 26
<?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);
$module 'auth/exit';
view_header(app_getConfig($module'title'));

if (
app_getConfig($module'close') == 1
{
    
?> 

<div class="block" style="text-align: center;"> 
    Данный модуль закрыт администратором.
</div>

    <?php

else 
{
    if (
filter_has_var(INPUT_GET'yes')) 
    {
        
user_unsetUser();
        
header("Location: "DS.HOME.DS ."wgame.index");
        exit();
    }
    echo 
'<div class="block" style="text-align: center;"> ';
    echo 
'Вы действительно хотите выйти из игры?<br/> ';
    echo 
'<a href="?yes" class="touchInlineLink"> Да</a> ';
    echo 
'<a href="'DS.HOME.DS .'wgame.main" class="touchInlineLink"> Нет</a> ';
    echo 
'</div> ';
}
Онлайн: 1
Реклама