Accueil/ajax/post-config.php

13 lines
364 B
PHP
Raw Permalink Normal View History

<?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";