mostly filebased Content Presentation System
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.

emptycache.php 562B

4 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839
  1. <!doctype html>
  2. <html>
  3. <head><title>maintainance</title>
  4. <style>
  5. body {
  6. background: white;
  7. }
  8. #message {
  9. width:50vw;
  10. margin:3em auto;
  11. border:20px solid yellow;
  12. padding: 1em;
  13. font-family: mono;
  14. font-weight: bold;
  15. }
  16. </style>
  17. </head>
  18. <?php
  19. $dir = "tmp/";
  20. $ls = scandir($dir);
  21. $count = 0;
  22. foreach($ls as $file) {
  23. if(!strncmp(".",$file,1)) continue;
  24. unlink($dir."".$file);
  25. $count++;
  26. }
  27. ?>
  28. <body>
  29. <div id="message">
  30. <p>erased <?php echo $count; ?> files</p>
  31. <p><a href="/">back to Homepage</a></p>
  32. </div>
  33. </body></html>