Ajout du module de news
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
<?// Escaping the input data:
|
||||
//TODO automatisation ! Je veux plus de "$config_xml[x]"
|
||||
$clock = $_POST['clock'];
|
||||
$weather = $_POST['weather'];
|
||||
$notes = $_POST['notes'];
|
||||
$search = $_POST['search'];
|
||||
$links = $_POST['links'];
|
||||
$blogs = $_POST['blogs'];
|
||||
$todo = $_POST['todo'];
|
||||
$clock = $_POST['clock'];
|
||||
$weather = $_POST['weather'];
|
||||
$notes = $_POST['notes'];
|
||||
$search = $_POST['search'];
|
||||
$links = $_POST['links'];
|
||||
$blogs = $_POST['blogs'];
|
||||
$todo = $_POST['todo'];
|
||||
$clockAdvanced = $_POST['clockAdvanced'];
|
||||
$rssblogs = $_POST['rssblogs'];
|
||||
$news = $_POST['news'];
|
||||
|
||||
$xmla = simplexml_load_file('../db/config.xml');
|
||||
$config_xml = $xmla->item;
|
||||
@@ -17,6 +20,9 @@ $config_xml[3]->visibility = $search;
|
||||
$config_xml[4]->visibility = $links;
|
||||
$config_xml[5]->visibility = $blogs;
|
||||
$config_xml[6]->visibility = $todo;
|
||||
$config_xml[7]->visibility = $clockAdvanced;
|
||||
$config_xml[8]->visibility = $rssblogs;
|
||||
$config_xml[9]->visibility = $news;
|
||||
$xmla->asXML('../db/config.xml');
|
||||
|
||||
echo "1";
|
||||
|
Reference in New Issue
Block a user