Accueil/ajax/update.php

20 lines
413 B
PHP
Raw Permalink Normal View History

<?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);
}