virt2/api/code/ajax/slider_edit.php

20 lines
296 B
PHP
Raw Normal View History

<?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);
}
?>