Файл: public_html/element_logout.php
Строк: 41
<?php
require_once './element_options/element_options.php';
if (!$user) { header('Location: /'); exit; }
    if ($go == 'ok') {
        setcookie('id', "", time()-3600*24*365, '/');
        setcookie('password', "", time()-3600*24*365, '/');
        header('Location: /');
        exit;
    }
    if (readcache('element_user_mesto'.$user['lost_id']) != 'Выходит') writecache('element_user_mesto'.$user['lost_id'], 'Выходит');    
    $title = 'Выход';
    require_once './element_include/element_head.php';
    require_once './element_include/element_header_user_true.php';
    echo '<div class="nfl cntr p5 mb5 mt5 w96 mlra">';
    echo '<span class="yellow1 small">Вы уверены что хотите выйти?</span><br/>';
    echo '<a class="btn w30 p5 green" href="/logout?go=ok">
            <span class="el"><span class="er">
            <span class="ttl">Да, уверен!</span>
            </span></span>
          </a>';
    echo '<a class="btn p5 w30" href="/">
            <span class="el"><span class="er">
            <span class="ttl">Нет, отмена!</span>
            </span></span>
          </a>';
    echo '</div>';
    require_once './element_include/element_foot_user_true.php';
?>