cms.parametres-debug.php 466 B

123456789101112131415161718192021
  1. <?php
  2. if(core::ifGet("actif") AND core::ifGet("target")){
  3. $filter = [
  4. "debug",
  5. "sql",
  6. "submit",
  7. "email",
  8. "send-email"
  9. ];
  10. if(in_array(core::getGet("target"), $filter)){
  11. if(core::getGet("actif") == "true"){
  12. debug::addFile(core::getGet("target"));
  13. } else {
  14. debug::removeFile(core::getGet("target"));
  15. }
  16. }
  17. }
  18. header("Location: " . $_SERVER['HTTP_REFERER']);
  19. exit();