View file exit.php

File size: 612B
<?php
include 'inc/db.php';
include 'inc/1.php';
if (!$user)header("Location: /aut.php");
if (!$_POST['ok']){
msg("Вы хотите выйти?<form action='?' method='POST'><input type='checkbox' name='reply'> Автоответчик<br><input type='submit' name='ok' value='Да'> <a href='/index.php'>Нет</a></form>");
}
else
{
if ($_POST['reply'])mysql_query("UPDATE `user` SET `reply_on` = '1' WHERE `id` = '$user[id]'");
setcookie('name');
setcookie('pass');
echo "<div class='msg'>Заходите еще!<br><a href='/'>На главную</a></div>";
}
include 'inc/foot.php';
?>