Вход Регистрация
Файл: widget/index.php
Строк: 131
<?
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';
$set['title']='Виджеты'// заголовок страницы
include_once '../sys/inc/thead.php';
title();

err();


echo 
"<div class='act'>";

echo 
"<a class='act_noactive' href='/umenu.php'>Меню</a>";

echo
'<a class="act_active">Виджеты</a>';
 echo
"</div>";
echo
'<div class="hide">Виджеты главной страницы</div>';


////   Показ 3 последних комментария форума  ------------------
if(isset($_GET['post_forum'])){
    if(isset(
$_POST['forum'])){
        
mysql_query("UPDATE `user` SET `post_forum` = '".intval($_POST['forum'])."' WHERE `id` = '$user[id]'");
        
header('Location: index.php');
        
$_SESSION['message'] = 'Настройки изменены';
    }

    echo 
'<div class="block"><form method="post">
    Показывать последние темы форума<br />
    <select name="forum">
    <option value="0"'
.($user['post_forum']==0?' selected="selected"':null).'>Не показывать</option>
    <option value="1"'
.($user['post_forum']==1?' selected="selected"':null).'>Показывать</option>
    </select>
    <br /><input type="submit" value="Сохранить">
    </form></div>'
;
    echo 
'<div class="hide"><a href="index.php">Настройки виджета</a></div>';
    include_once 
H.'sys/inc/tfoot.php';
    exit();
}
echo 
'<div class="block"><a href="?post_forum">Показывать последние темы форума</a></div>';




////   Показ 3 последних комментария беседке  ------------------
if(isset($_GET['post_chat'])){
    if(isset(
$_POST['chat'])){
        
mysql_query("UPDATE `user` SET `post_chat` = '".intval($_POST['chat'])."' WHERE `id` = '$user[id]'");
        
header('Location: index.php');
        
$_SESSION['message'] = 'Настройки изменены';
    }

    echo 
'<div class="block"><form method="post">
    Показывать последние комментарии беседки<br />
    <select name="chat">
    <option value="0"'
.($user['post_chat']==0?' selected="selected"':null).'>Не показывать</option>
    <option value="1"'
.($user['post_chat']==1?' selected="selected"':null).'>Показывать</option>
    </select>
    <br /><input type="submit" value="Сохранить">
    </form></div>'
;
    echo 
'<div class="hide"><a href="index.php">Настройки виджета</a></div>';
    include_once 
H.'sys/inc/tfoot.php';
    exit();
}
echo 
'<div class="block"><a href="?post_chat">Показывать последние комментарии  беседки</a></div>';



////   Показ 3 последних файлов зоны  ------------------
if(isset($_GET['post_obmen'])){
    if(isset(
$_POST['obmen'])){
        
mysql_query("UPDATE `user` SET `post_obmen` = '".intval($_POST['obmen'])."' WHERE `id` = '$user[id]'");
        
header('Location: index.php');
        
$_SESSION['message'] = 'Настройки изменены';
    }

    echo 
'<div class="block"><form method="post">
    Показывать последние файлы зоны обмена<br />
    <select name="obmen">
    <option value="0"'
.($user['post_obmen']==0?' selected="selected"':null).'>Не показывать</option>
    <option value="1"'
.($user['post_obmen']==1?' selected="selected"':null).'>Показывать</option>
    </select>
    <br /><input type="submit" value="Сохранить">
    </form></div>'
;
    echo 
'<div class="hide"><a href="index.php">Настройки виджета</a></div>';
    include_once 
H.'sys/inc/tfoot.php';
    exit();
}
echo 
'<div class="block"><a href="?post_obmen">Показывать последние файлы зоны обмена</a></div>';


////   Показ 3 последних записей дневника ------------------
if(isset($_GET['post_notes'])){
    if(isset(
$_POST['notes'])){
        
mysql_query("UPDATE `user` SET `post_notes` = '".intval($_POST['notes'])."' WHERE `id` = '$user[id]'");
        
header('Location: index.php');
        
$_SESSION['message'] = 'Настройки изменены';
    }

    echo 
'<div class="block"><form method="post">
    Показывать последние записи дневника<br />
    <select name="notes">
    <option value="0"'
.($user['post_notes']==0?' selected="selected"':null).'>Не показывать</option>
    <option value="1"'
.($user['post_notes']==1?' selected="selected"':null).'>Показывать</option>
    </select>
    <br /><input type="submit" value="Сохранить">
    </form></div>'
;
    echo 
'<div class="hide"><a href="index.php">Настройки виджета</a></div>';
    include_once 
H.'sys/inc/tfoot.php';
    exit();
}
echo 
'<div class="block"><a href="?post_notes">Показывать последние записи дневника</a></div>';

echo
'<div class="hide">Виджеты личной страницы</div>';



////   Показ  фото пользователей------------------
if(isset($_GET['post_foto'])){
    if(isset(
$_POST['foto'])){
        
mysql_query("UPDATE `user` SET `post_foto` = '".intval($_POST['foto'])."' WHERE `id` = '$user[id]'");
        
header('Location: index.php');
        
$_SESSION['message'] = 'Настройки изменены';
    }

    echo 
'<div class="block"><form method="post">
    Показывать последние фото на личной странице<br />
    <select name="foto">
    <option value="0"'
.($user['post_foto']==0?' selected="selected"':null).'>Не показывать</option>
    <option value="1"'
.($user['post_foto']==1?' selected="selected"':null).'>Показывать</option>
    </select>
    <br /><input type="submit" value="Сохранить">
    </form></div>'
;
    echo 
'<div class="hide"><a href="index.php">Настройки виджета</a></div>';
    include_once 
H.'sys/inc/tfoot.php';
    exit();
}
echo 
'<div class="block"><a href="?post_foto">Показывать последние фото на личной странице</a></div>';






include_once 
'../sys/inc/tfoot.php';
?>
Онлайн: 1
Реклама