Файл: titwar.tk/closemail.php
Строк: 21
<?php
/**
*
* @author
*/
include './system/common.php';
include './system/functions.php';
include './system/user.php';
if (!isset ($user)) {
header('location: /');
exit;
}
$title = 'Настройки почты';
include './system/h.php';
if(isset($_POST['submit'])){
$mail = intval($_POST['mail']);
mysql_query("UPDATE users SET mail_closed='$mail' WHERE id ='".$user['id']."'") or die(mysql_error());
echo '<div class="menu">Сохранено!</div>';
}
echo '
<div class="title">Приватность</div>
<center>
<form action="" method="POST"> <input type="radio" name="mail" value="0" checked /> Открыть почту <input type="radio" name="mail" value="1" />Закрыть <br/><input type="submit" name="submit" value="Сохранить"></form></center>
</div>
';
include './system/f.php';