2016-11-17 22:16:26 +01:00
|
|
|
<?php
|
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
|
|
|
}
|
2016-11-17 22:16:26 +01:00
|
|
|
echo "1";
|