Файл: search/adm.php
Строк: 82
<?
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/adm_check.php';
include_once '../sys/inc/user.php';
include_once '../search/inc/sea_set.php';
user_access('adm_mysql',null,'index.php?'.SID);
adm_check();
$set['title']='Настроим по сайту'; // заголовок страницы
include_once '../sys/inc/thead.php';
title();
aut();
if (isset($_POST['save'])){
if (isset($_POST['forum']) && $_POST['forum']==1) { mysql_query("UPDATE `sea_set` SET `forum` = '1' WHERE `id` = '1' LIMIT 1"); }else{ mysql_query("UPDATE `sea_set` SET `forum` = '0' WHERE `id` = '1' LIMIT 1"); }
if (isset($_POST['foto']) && $_POST['foto']==1) { mysql_query("UPDATE `sea_set` SET `foto` = '1' WHERE `id` = '1' LIMIT 1"); }else{ mysql_query("UPDATE `sea_set` SET `foto` = '0' WHERE `id` = '1' LIMIT 1"); }
if (isset($_POST['users']) && $_POST['users']==1) { mysql_query("UPDATE `sea_set` SET `users` = '1' WHERE `id` = '1' LIMIT 1"); }else{ mysql_query("UPDATE `sea_set` SET `users` = '0' WHERE `id` = '1' LIMIT 1"); }
if (isset($_POST['video']) && $_POST['video']==1) { mysql_query("UPDATE `sea_set` SET `video` = '1' WHERE `id` = '1' LIMIT 1"); }else{ mysql_query("UPDATE `sea_set` SET `video` = '0' WHERE `id` = '1' LIMIT 1"); }
if (isset($_POST['muz']) && $_POST['muz']==1) { mysql_query("UPDATE `sea_set` SET `muz` = '1' WHERE `id` = '1' LIMIT 1"); }else{ mysql_query("UPDATE `sea_set` SET `muz` = '0' WHERE `id` = '1' LIMIT 1"); }
if (isset($_POST['img']) && $_POST['img']==1) { mysql_query("UPDATE `sea_set` SET `img` = '1' WHERE `id` = '1' LIMIT 1"); }else{ mysql_query("UPDATE `sea_set` SET `img` = '0' WHERE `id` = '1' LIMIT 1"); }
if (isset($_POST['java']) && $_POST['java']==1) { mysql_query("UPDATE `sea_set` SET `java` = '1' WHERE `id` = '1' LIMIT 1"); }else{ mysql_query("UPDATE `sea_set` SET `java` = '0' WHERE `id` = '1' LIMIT 1"); }
echo "<div class='foot'>Успех<br/><a href='/search/adm.php'>Перенастроить</a><br/><a href='/search/'>К поиску</a></div>n";
}else{
echo "<form method='post' action='?$passgen'>n";
echo "Разделы главные:<br /> <label><input type='checkbox' name='forum'".($sea_set['forum']==1?' checked="checked"':null)." value='1' /> Форум</label><br />n";
echo "<label><input type='checkbox' name='foto'".($sea_set['foto']==1?' checked="checked"':null)." value='1' /> Фото</label><br />n";
echo "<label><input type='checkbox' name='users'".($sea_set['users']==1?' checked="checked"':null)." value='1' /> Обитатели</label><br />n";
echo "Разделы обмен.:<br /> <label><input type='checkbox' name='img'".($sea_set['img']==1?' checked="checked"':null)." value='1' /> Картинки</label><br />n";
echo "<label><input type='checkbox' name='video'".($sea_set['video']==1?' checked="checked"':null)." value='1' /> Видео</label><br />n";
echo "<label><input type='checkbox' name='muz'".($sea_set['muz']==1?' checked="checked"':null)." value='1' /> Музыка</label><br />n";
echo "<label><input type='checkbox' name='java'".($sea_set['java']==1?' checked="checked"':null)." value='1' /> Игры и приложение</label><br />n";
echo "<input type='submit' name='save' value='Сохранить' />n";
echo "</form>n";
}
include_once '../sys/inc/tfoot.php';
?>