13 lines
364 B
PHP
13 lines
364 B
PHP
<?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";
|