virt2/api/code/ajax/slider_edit.php

20 lines
296 B
PHP
Executable File

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