Вход Регистрация
Файл: modules/admin/sett.php
Строк: 32
<?php

include_once($_SERVER["DOCUMENT_ROOT"]."/style/head.php");

@
session_start();
if(!
$pass){

echo 
'<div class=title_red>Ошибка</div>
<div class="text_center">Вы не авторизированный как администратор</div>'
;
include_once(
$_SERVER["DOCUMENT_ROOT"]."/style/foot.php");
exit();
header('location:/');

}

if(isset(
$_POST['ok'])) {

$_POST['title']=creawap($_POST['title']);
$_POST['keywords']=creawap($_POST['keywords']);
$_POST['description']=creawap($_POST['description']);
    
mysql_query("UPDATE `setting` SET `title`='".$_POST['title']."', `keywords`='".$_POST['keywords']."', `description`='".$_POST['description']."' WHERE `id`='1'");

header('location:/adm');
}

echo 
'<div class="title_red">Основные настройки сайта</div>
<div class="text_center">
<form action="" method="POST">
Название сайта (title)<br/>
<input type="text" name="title" value="'
.$sett['title'].'"><br/>
Ключевые слова (keywords)<br/><input type="text" name="keywords" value="'
.$sett['keywords'].'"><br/>
Описание сайта (description)<br/><input type="text" name="description" value="'
.$sett['description'].'"><br/>
<input type="submit" name="ok" value="Сохранить"></form></div>
<div class="link"><a href="/adm"><img src="/style/ico/menu.png"> Назад</a></div>'
;

include_once(
$_SERVER["DOCUMENT_ROOT"]."/style/foot.php");

?>
Онлайн: 0
Реклама