Файл: panel/rules.php
Строк: 13
<?PHP
require '../Core/start.php';
$title = 'Правила каталога';
require '../Core/header.php';
if(!isset($user)){header('Location: /');}
if(isset($_POST['go']))
{
$rules = text($_POST['rules']);
mysql_query("UPDATE `settings_core` SET `value` = '$rules' WHERE `key` = 'rules'");
message('Правила каталога успешно сохранены');
}
$config = array();
$settings = mysql_query("SELECT * FROM `settings_core`");
while($item = mysql_fetch_array($settings))
{
$system2[$item['key']] = $item['value'];
}
?>
<div class="menu">
<form action="" method="POST">
<textarea name="rules"><?=on_text($system2['rules'])?></textarea><br />
<input type="submit" name="go" value="Сохранить">
</form>
</div>
<?
require '../Core/footer.php';
?>