20 lines
296 B
PHP
20 lines
296 B
PHP
|
<?php
|
||
|
echo 1;
|
||
|
if ($_SESSION['dostup']!=='a' && $_SESSION['dostup']!=='e')header( 'Location: /403/' );
|
||
|
|
||
|
|
||
|
if($_POST){
|
||
|
print_r($_POST);
|
||
|
//узнаем ИД настроек
|
||
|
unset($a);
|
||
|
$a['mod']=ID;
|
||
|
$id=$db->get_val('settings', $a, 'id');
|
||
|
echo $id;
|
||
|
$db->update_xml('settings', $id, $_POST);
|
||
|
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
?>
|