Вход Регистрация
Файл: vk.com_vhllam/user/tape/settings.php
Строк: 262
<?

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();

$lentaSet mysql_fetch_array(mysql_query("SELECT * FROM `tape_set` WHERE `id_user` = '".$user['id']."' LIMIT 1"));

if (isset(
$_POST['save'])){
 
// Лента фото
if (isset($_POST['lenta_foto']) && ($_POST['lenta_foto']==|| $_POST['lenta_foto']==1))
{
mysql_query("UPDATE `tape_set` SET `lenta_foto` = '".intval($_POST['lenta_foto'])."' WHERE `id_user` = '$user[id]'");
}
 
// Лента файлов
if (isset($_POST['lenta_files']) && ($_POST['lenta_files']==|| $_POST['lenta_files']==1))
{
mysql_query("UPDATE `tape_set` SET `lenta_files` = '".intval($_POST['lenta_files'])."' WHERE `id_user` = '$user[id]'");
}
 
// Лента смены аватара
if (isset($_POST['lenta_avatar']) && ($_POST['lenta_avatar']==|| $_POST['lenta_avatar']==1))
{
mysql_query("UPDATE `tape_set` SET `lenta_avatar` = '".intval($_POST['lenta_avatar'])."' WHERE `id_user` = '$user[id]'");
}
 
// Лента новых друзей
if (isset($_POST['lenta_frends']) && ($_POST['lenta_frends']==|| $_POST['lenta_frends']==1))
{
mysql_query("UPDATE `tape_set` SET `lenta_frends` = '".intval($_POST['lenta_frends'])."' WHERE `id_user` = '$user[id]'");
}
 
// Лента статусов
if (isset($_POST['lenta_status']) && ($_POST['lenta_status']==|| $_POST['lenta_status']==1))
{
mysql_query("UPDATE `tape_set` SET `lenta_status` = '".intval($_POST['lenta_status'])."' WHERE `id_user` = '$user[id]'");
}
 
// Лента оценок статуса
if (isset($_POST['lenta_status_like']) && ($_POST['lenta_status_like']==|| $_POST['lenta_status_like']==1))
{
mysql_query("UPDATE `tape_set` SET `lenta_status_like` = '".intval($_POST['lenta_status_like'])."' WHERE `id_user` = '$user[id]'");
}
 
// Лента дневников
if (isset($_POST['lenta_notes']) && ($_POST['lenta_notes']==|| $_POST['lenta_notes']==1))
{
mysql_query("UPDATE `tape_set` SET `lenta_notes` = '".intval($_POST['lenta_notes'])."' WHERE `id_user` = '$user[id]'");
}
 
// Лента форума
if (isset($_POST['lenta_forum']) && ($_POST['lenta_forum']==|| $_POST['lenta_forum']==1))
{
mysql_query("UPDATE `tape_set` SET `lenta_forum` = '".intval($_POST['lenta_forum'])."' 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='post_1'>";
echo 
"Уведомления о новых друзьях";
echo 
"</div>";

echo 
"<div class='x1'>";
echo 
"<input name='lenta_frends' type='radio' ".($lentaSet['lenta_frends']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_frends' type='radio' ".($lentaSet['lenta_frends']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";
 
// Лента Дневников
echo "<div class='post_1'>";
echo 
"Уведомления о новых дневниках";
echo 
"</div>";

echo 
"<div class='x2'>";
echo 
"<input name='lenta_notes' type='radio' ".($lentaSet['lenta_notes']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_notes' type='radio' ".($lentaSet['lenta_notes']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";

 
// Лента темах
echo "<div class='post_1'>";
echo 
"Уведомления о новых темах в форуме";
echo 
"</div>";

echo 
"<div class='x1'>";
echo 
"<input name='lenta_forum' type='radio' ".($lentaSet['lenta_forum']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_forum' type='radio' ".($lentaSet['lenta_forum']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";

 
// Лента фото
echo "<div class='post_1'>";
echo 
"Уведомления о новых фото";
echo 
"</div>";

echo 
"<div class='x2'>";
echo 
"<input name='lenta_foto' type='radio' ".($lentaSet['lenta_foto']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_foto' type='radio' ".($lentaSet['lenta_foto']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";
 
// Лента о смене аватара
echo "<div class='post_1'>";
echo 
"Уведомления о смене аватаров";
echo 
"</div>";

echo 
"<div class='x1'>";
echo 
"<input name='lenta_avatar' type='radio' ".($lentaSet['lenta_avatar']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_avatar' type='radio' ".($lentaSet['lenta_avatar']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";
 
// Лента файлов
echo "<div class='post_1'>";
echo 
"Уведомления о новых файлах";
echo 
"</div>";

echo 
"<div class='x2'>";
echo 
"<input name='lenta_files' type='radio' ".($lentaSet['lenta_files']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_files' type='radio' ".($lentaSet['lenta_files']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";

 
// Лента статусов
echo "<div class='post_1'>";
echo 
"Уведомления о новых статусах";
echo 
"</div>";

echo 
"<div class='x1'>";
echo 
"<input name='lenta_status' type='radio' ".($lentaSet['lenta_status']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_status' type='radio' ".($lentaSet['lenta_status']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";

 
// Лента оценок статуса
echo "<div class='post_1'>";
echo 
"Уведомления о "Like" к статусам друзей";
echo 
"</div>";

echo 
"<div class='x2'>";
echo 
"<input name='lenta_status_like' type='radio' ".($lentaSet['lenta_status_like']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_status_like' type='radio' ".($lentaSet['lenta_status_like']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";

// Лента опросов
echo "<div class='post_1'>";
echo 
"Уведомления о новых ✔ опросах ツ друзей";
echo 
"</div>";

echo 
"<div class='x1'>";
echo 
"<input name='lenta_poll' type='radio' ".($lentaSet['lenta_poll']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_poll' type='radio' ".($lentaSet['lenta_poll']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";

 
// Лента опросов Like
echo "<div class='post_1'>";
echo 
"Уведомления о понравившихся ✔ опросах ツ вашим друзьям";
echo 
"</div>";

echo 
"<div class='x2'>";
echo 
"<input name='lenta_poll_like' type='radio' ".($lentaSet['lenta_poll_like']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_poll_like' type='radio' ".($lentaSet['lenta_poll_like']==0?' checked="checked"':null)." value='0' /> Нет ";
echo 
"</div>";

 
// Лента опросов Like
echo "<div class='post_1'>";
echo 
"Уведомления о проголосованных ✔ опросов ツ вашими друзьями";
echo 
"</div>";

echo 
"<div class='x1'>";
echo 
"<input name='lenta_poll_vote' type='radio' ".($lentaSet['lenta_poll_vote']==1?' checked="checked"':null)." value='1' /> Да ";
echo 
"<input name='lenta_poll_vote' type='radio' ".($lentaSet['lenta_poll_vote']==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='/info.php?id=$user[id]'>$user[nick]</a> | n";
echo 
'<b>Лента</b>';
echo 
"</div>n";
    
include_once 
'../../sys/inc/tfoot.php';
?>
Онлайн: 0
Реклама