Файл: vk.com_vhllam/user/notification/settings.php
Строк: 76
<?
include_once '../../sys/inc/start.php';
include_once '../../sys/inc/compress.php';
include_once '../../sys/inc/sess.php';
include_once '../../sys/inc/home.php';
include_once '../../sys/inc/settings.php';
include_once '../../sys/inc/db_connect.php';
include_once '../../sys/inc/ipua.php';
include_once '../../sys/inc/fnc.php';
include_once '../../sys/inc/user.php';
only_reg();
$set['title']='Настройка уведомлений';
include_once '../../sys/inc/thead.php';
title();
$notSet = mysql_fetch_array(mysql_query("SELECT * FROM `notification_set` WHERE `id_user` = '".$user['id']."' LIMIT 1"));
if (isset($_POST['save'])){
// Комментарии
if (isset($_POST['komm']) && ($_POST['komm']==0 || $_POST['komm']==1))
{
mysql_query("UPDATE `notification_set` SET `komm` = '".intval($_POST['komm'])."' WHERE `id_user` = '$user[id]'");
}
$_SESSION['message'] = 'Изменения успешно приняты';
header('Location: settings.php');
exit;
}
err();
aut();
echo "<div class='cont'>";
echo "<a href='/user/info/settings.php'>Общие</a> |";
echo "<a href='/user/tape/settings.php'> Лента</a> | ";
echo "<a href='/user/discussions/settings.php'> Обсуждения</a> |";
echo "<a href='/user/notification/settings.php'> Уведомления</a> |";
echo "<a href='/user/info/settings.privacy.php' > Приватность</a> |";
echo "<a href='/user/info/secure.php' > Пароль</a>";
echo "</div>";
echo "<form action='?' method="post">";
// Лента фото
echo "<div class='mailsi'>";
echo "Уведомления о ответах в комментариях";
echo "</div>";
echo "<div class='ot'>";
echo "<input name='komm' type='radio' ".($notSet['komm']==1?' checked="checked"':null)." value='1' /> Да ";
echo "<input name='komm' type='radio' ".($notSet['komm']==0?' checked="checked"':null)." value='0' /> Нет ";
echo "</div>";
echo "<div class='mails'>";
echo "<input type='submit' name='save' value='Сохранить' />";
echo "</div>";
echo "</form>";
echo "<div class='cont'>n";
echo "<img src='/style/icons/str2.gif' alt='*' /> <a href='index.php'>Уведомления</a> | <b>Настройки</b><br />n";
echo "</div>n";
include_once '../../sys/inc/tfoot.php';
?>