Файл: templates/system/exit.php
Строк: 16
<?php
/*
MonsterCMS 0.6
ICQ: 22-22-095
ВКонтакте: https://vk.com/robot_anton
By Phenomenal
*/
session_start();
$title = ('Выход');
require_once('../../fnc/core.php');
require_once('../../fnc/head.php');
if(!$user['id']) {
header('Location: /');
exit();
}
if(isset($_REQUEST['yes'])) {
//-----Стираем кукки-----//
setcookie('login', '', time() - 86400*31);
setcookie('password', '', time() - 86400*31);
$_SESSION['message']='Вы успешно вышли';
header('Location: /');
}
echo '
<div id="msg">Выйти?<br /><a href="/exit?yes">Да</a>|<a href="/">Нет</a></div>';
require_once ('../../fnc/foot.php');
?>