File size: 929B
<?php
include_once 'sys/inc/start.php';
include_once 'sys/inc/compress.php';
include_once 'sys/inc/sess.php';
include_once 'sys/inc/home.php';
include_once 'sys/inc/settings.php';
include_once 'sys/inc/db_connect.php';
include_once 'sys/inc/ipua.php';
include_once 'sys/inc/fnc.php';
include_once 'sys/inc/user.php';
include_once 'sys/inc/thead.php';
title();
aut();
only_reg();
msg("Вы уверены что хотите выйти?
<form method='post' action=''>
<input type='submit' name='exit' value='ДА' />
<b> :: <a href='".getenv('HTTP_REFERER')."'>Нет</a></b>
</form>
");
# getenv() если нет возврощаем обратно на страницу
# если выбрано чистим куки и выкидываем на главную
if (isset($_POST['exit']))
{
setcookie('id_user');
setcookie('pass');
session_destroy();
exit(header('Location: /'));
}
include_once 'sys/inc/tfoot.php';