20 lines
413 B
PHP
20 lines
413 B
PHP
<?php
|
|
|
|
// Error reporting
|
|
error_reporting(E_ALL^E_NOTICE);
|
|
|
|
// Escaping:
|
|
$options = array();
|
|
$module ='';
|
|
foreach($_GET as $indice=>$valeur){
|
|
if($indice == 'id')
|
|
$module = $valeur;
|
|
else
|
|
$options[$indice] = $valeur;
|
|
}
|
|
include '../class/AccueilModules.php';
|
|
$moduleToUpdate = AccueilModules::getModule($module);
|
|
if($moduleToUpdate != null){
|
|
echo $moduleToUpdate->updateConfig($options);
|
|
}
|