cms.parametres-debug-activation.php 870 B

123456789101112131415161718192021222324252627
  1. <?php
  2. if(core::ifGet("actif")){
  3. if(core::getGet("actif") == "true"){
  4. debug::addFile("debug");
  5. historique::recRef("/parametres.html");
  6. historique::add(array(
  7. "idType" => historique::getIdRef("ACTION"),
  8. "idUser" => session::getId(),
  9. "idPage" => historique::getIdRef("/parametres.html"),
  10. "log" => "Mode debug : Activation"
  11. ));
  12. } else {
  13. debug::removeFile("debug");
  14. historique::recRef("/parametres.html#parametres-debug");
  15. historique::add(array(
  16. "idType" => historique::getIdRef("ACTION"),
  17. "idUser" => session::getId(),
  18. "idPage" => historique::getIdRef("/parametres.html#parametres-debug"),
  19. "log" => "Mode debug : Désactivation"
  20. ));
  21. }
  22. }
  23. header("Location: /parametres.html#parametres-debug");
  24. exit();