Вход Регистрация
Файл: rusalc/apsettings.php
Строк: 138
<?
include_once '../sys/core/start.php';
include_once 
'../sys/core/compress.php';
include_once 
'../sys/core/sess.php';
include_once 
'../sys/core/home.php';

include_once 
'../sys/core/db_connect.php';
include_once 
'../sys/core/ipua.php';
include_once 
'../sys/core/fnc.php';
include_once 
'../sys/core/user.php';
include_once 
'../sys/inc/fnc_game.php';
include_once 
'../sys/inc/thead.php';
include_once 
'../sys/inc/uhead.php';
only_reg();


if (
$user['acces']==765466656){
if(isset(
$_POST['edit']))
{
$title=htmlspecialchars($_POST['title']);
$copyright=htmlspecialchars($_POST['copyright']);

$og_description=htmlspecialchars($_POST['og_description']);
$og_title=htmlspecialchars($_POST['og_title']);
$og_image=htmlspecialchars($_POST['og_image']);
$og_url=htmlspecialchars($_POST['og_url']);
$work_text=htmlspecialchars($_POST['work_text']);
mysql_query("UPDATE `settings` SET `title` = '$title',`copyright` = '$copyright'  ,`og_description` = '$og_description',`og_title` = '$og_title',`og_image` = '$og_image',`og_url` = '$og_url',`work_text`='$work_text' WHERE `id` = '1' LIMIT 1");
header("Location: #");
exit;
}

if(isset(
$_POST['reg_on']))
{
mysql_query("UPDATE `settings` SET `registration` = 'open'  WHERE `id` = '1' LIMIT 1");
header("Location: /rusalc/apsettings.php");
}
if(isset(
$_POST['reg_off']))
{
mysql_query("UPDATE `settings` SET `registration` = 'close'  WHERE `id` = '1' LIMIT 1");
header("Location: /rusalc/apsettings.php");
}


if(isset(
$_POST['on']))
{
mysql_query("UPDATE `settings` SET `status` = 'on'  WHERE `id` = '1' LIMIT 1");
header("Location: /rusalc/apsettings.php");
}
if(isset(
$_POST['off']))
{
mysql_query("UPDATE `settings` SET `status` = 'off'  WHERE `id` = '1' LIMIT 1");
header("Location: /rusalc/apsettings.php");
}

echo 
"<table class='wdt gray-table'><tbody><tr><td class='white' align='center' style='padding: 10px;'><form method='post'><table><tbody>";

echo 
"<tr><td>Названия игры:</td><td><input style='height:25px' type='text' name='title'  value='$set[title]'></td></tr>";
echo 
"<tr><td>Копирайт:</td><td><input style='height:25px' type='text' name='copyright'  value='$set[copyright]'></td></tr>";
echo 
"<tr><td>Описания:</td><td><textarea name='og_description' class='wdt' style='font-size: 11px' >$set[og_description]</textarea></td></tr>";
echo 
"<tr><td>Теги:</td><td><textarea name='og_title' class='wdt' style='font-size: 11px' >$set[og_title]</textarea></td></tr>";
echo 
"<tr><td>Сайт закрыт:</td><td><textarea name='work_text' class='wdt' style='font-size: 11px' >$set[work_text]</textarea></td></tr>";
echo 
"<tr><td>Картинка:</td><td><input style='height:25px' type='text' name='og_image'  value='$set[og_image]'></td></tr>";
echo 
"<tr><td>URL:</td><td><input style='height:25px' type='text' name='og_url'  value='$set[og_url]'></td></tr>";


if (
$set['status']=='on')
{
echo 
"<tr><td>Сайт:</td><td><form action='' method='post'><button style='background: none;border: 0;cursor: pointer;' type='text' name='off'><img src='/style/img/icons/off.png' height='20px' style='padding-top:4px;'></button></form></td></tr>";
}else{
echo 
"<tr><td>Сайт:</td><td><form action='' method='post'><button style='background: none;border: 0;cursor: pointer;' type='text' name='on'><img src='/style/img/icons/on.png' height='20px' style='padding-top:4px;'></button></form></td></tr>";
}


if (
$set['registration']=='open')
{
echo 
"<tr><td>Регистрация:</td><td><form action='' method='post'><button style='background: none;border: 0;cursor: pointer;' type='text' name='reg_off'><img src='/style/img/icons/off.png' height='20px' style='padding-top:4px;'></button></form></td></tr>";
}else{
echo 
"<tr><td>Регистрация:</td><td><form action='' method='post'><button style='background: none;border: 0;cursor: pointer;' type='text' name='reg_on'><img src='/style/img/icons/on.png' height='20px' style='padding-top:4px;'></button></form></td></tr>";
}

echo 
"<tr><td colspan='2'><input class='btn' type='submit' name='edit' value='Изменить'></td></tr>";


echo 
"</tbody></table></form></td></tr></tbody></table>";


echo 
"<table class='wdt gray-table'><tr><td class='white td-cell' align='center' style='height:30px;'><form action ='/rusalc/ap' method='post'><input class='btn' type='submit' value='Назад'></form></td></tr></table>";


}
else
{
header("Location: /dev/garage.php");
}

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