2010-09-22 16:02:40 +02:00
|
|
|
<?
|
|
|
|
$options = array();
|
|
|
|
$module ='';
|
|
|
|
include '../class/AccueilModules.php';
|
|
|
|
foreach($_POST as $module => $valeur){
|
2010-10-05 17:30:04 +02:00
|
|
|
$moduleToUpdate = AccueilModules::getModule($module);
|
|
|
|
if($moduleToUpdate != null){
|
|
|
|
$moduleToUpdate->updateConfig(array('visibility'=>$valeur));
|
|
|
|
}
|
|
|
|
//AccueilModules::updateModule($module, array('visibility'=>$valeur));
|
2010-09-22 16:02:40 +02:00
|
|
|
}
|
2010-10-05 17:30:04 +02:00
|
|
|
echo "1"
|
2010-09-14 23:38:29 +02:00
|
|
|
?>
|