Accueil/ajax/post-config.php
2010-09-14 21:38:29 +00:00

22 lines
558 B
PHP

<?// Escaping the input data:
$clock = $_POST['clock'];
$meteo = $_POST['meteo'];
$notes = $_POST['notes'];
$search = $_POST['search'];
$links = $_POST['links'];
$blogs = $_POST['blogs'];
$xmla = simplexml_load_file('../db/config.xml');
$config_xml = $xmla->item;
$config_xml[0]->visibility = $clock;
$config_xml[1]->visibility = $meteo;
$config_xml[2]->visibility = $notes;
$config_xml[3]->visibility = $search;
$config_xml[4]->visibility = $links;
$config_xml[5]->visibility = $blogs;
$xmla->asXML('../db/config.xml');
echo "1";
?>