You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update.php 413B

12345678910111213141516171819
  1. <?php
  2. // Error reporting
  3. error_reporting(E_ALL^E_NOTICE);
  4. // Escaping:
  5. $options = array();
  6. $module ='';
  7. foreach($_GET as $indice=>$valeur){
  8. if($indice == 'id')
  9. $module = $valeur;
  10. else
  11. $options[$indice] = $valeur;
  12. }
  13. include '../class/AccueilModules.php';
  14. $moduleToUpdate = AccueilModules::getModule($module);
  15. if($moduleToUpdate != null){
  16. echo $moduleToUpdate->updateConfig($options);
  17. }