cms.parametres-debug.php 444 B

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