Файл: vk.com_vhllam/user/info/stena.php
Строк: 62
<?
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();
if (isset($_POST['save'])){
if (isset($_POST['stena_foto']) && $_POST['stena_foto']==0)
{
$user['stena_foto']=0;
mysql_query("UPDATE `user` SET `stena_foto` = '0' WHERE `id` = '$user[id]' LIMIT 1");
}
else
{
$user['stena_foto']=1;
mysql_query("UPDATE `user` SET `stena_foto` = '1' WHERE `id` = '$user[id]' LIMIT 1");
}
if (!isset($err))msg('Изменения успешно приняты');
}
err();
aut();
echo "<div class='opps'>";
echo "<a href='settings.php'>- Мои настройки</a>";
echo "</div>";
echo "<div class='opps'>";
echo "<a href='stena.php'>- Стена сообщений</a>";
echo "</div>";
echo "<form method='post' action='?$passgen'>";
echo "
<label><input type='checkbox' name='stena_foto'".($user['stena_foto']==0?' checked="checked"':null)." value='0' /> Фотографии</label><br />
<input type='submit' name='save' value='Сохранить' />
</form>
<div class='new_opps'>
- <a href='anketa.php'>Посмотреть анкету</a><br />n";
if(isset($_SESSION['refer']) && $_SESSION['refer']!=NULL && otkuda($_SESSION['refer']))
echo "- <a href='$_SESSION[refer]'>".otkuda($_SESSION['refer'])."</a><br />n";
echo "- <a href='/umenu.php'>Стартовая страница</a><br /></div>n";
include_once '../../sys/inc/tfoot.php';
?>