|
123456789101112131415161718192021222324252627282930313233343536373839 |
- <!doctype html>
- <html>
- <head><title>maintainance</title>
- <style>
- body {
- background: white;
- }
-
- width:50vw;
- margin:3em auto;
- border:20px solid yellow;
- padding: 1em;
-
- font-family: mono;
- font-weight: bold;
- }
- </style>
- </head>
-
- <?php
-
- $dir = "tmp/";
-
-
- $ls = scandir($dir);
- $count = 0;
- foreach($ls as $file) {
- if(!strncmp(".",$file,1)) continue;
- unlink($dir."".$file);
- $count++;
- }
- ?>
- <body>
- <div id="message">
- <p>erased <?php echo $count; ?> files</p>
- <p><a href="/">back to Homepage</a></p>
- </div>
- </body></html>
-
|