Guest User

Untitled

a guest
Nov 19th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. $paths = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(realpath($_get['site'])), RecursiveIteratorIterator:ELF_FIRST);
  2. foreach ($paths as $path) {
  3. $p = $path->__toString();
  4. if(!$path->isDir() && strpos($p, '/cache/') && !strpos($p, 'index.html'))
  5. unlink($p);
  6. }
Add Comment
Please, Sign In to add comment