Accueil/ajax/post-config.php

14 lines
364 B
PHP

<?
$options = array();
$module ='';
include '../class/AccueilModules.php';
foreach($_POST as $module => $valeur){
$moduleToUpdate = AccueilModules::getModule($module);
if($moduleToUpdate != null){
$moduleToUpdate->updateConfig(array('visibility'=>$valeur));
}
//AccueilModules::updateModule($module, array('visibility'=>$valeur));
}
echo "1"
?>