Creation of the world
This commit is contained in:
21
ajax/post-config.php
Normal file
21
ajax/post-config.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?// 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";
|
||||
?>
|
Reference in New Issue
Block a user