Файл: modules/login/exit.php
Строк: 16
<?php
$title='Выход';
include_once($_SERVER["DOCUMENT_ROOT"].'/style/head.php');
?>
<div class="title">Выход</div>
<?
if(isset($_POST['ok'])){
setcookie("tocken", "");
?>
<div class="success">
Вы успешно вышли с аккаунта!
</div>
<?
include_once($_SERVER["DOCUMENT_ROOT"].'/style/foot.php');
exit();
}elseif(isset($_POST['no'])){
header('location:/');
}
mode('user');
?>
<div class="text">
Вы действительно хотите выйти с аккаунта?<br/>
<form action="" method="POST">
<input type="submit" name="ok" value="Да"> <input type="submit" name="no" value="Нет">
</form>
</div>
<?
include_once($_SERVER["DOCUMENT_ROOT"].'/style/foot.php');
?>