Advertisement
jaideejung007

PHP ulinkout Extension Remove Tools

Aug 16th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <?php
  2. /**
  3.  *
  4.  * PHP ulinkout Extension Remove Tools
  5.  *
  6.  * @author jaideejung007 http://www.discuzthai.com
  7.  * @copyright 2016 DiscuzThai
  8.  * @license https://creativecommons.org/licenses/by/3.0/th/
  9.  *
  10.  * @version 0.1
  11.  *
  12.  * How to:
  13.  * Save as to clr.php file and upload to your host within .ulinkout files, and run http://domain.com/folder/clr.php
  14.  */
  15.  
  16. $dir = "./";
  17.  
  18. set_time_limit(0);
  19. if (is_dir($dir)) {
  20.     if ($dh = opendir($dir)) {
  21.         while (($file = readdir($dh)) !== false) {
  22.                         if(is_file($dir . $file)) {
  23.                                 if(pathinfo($file, PATHINFO_EXTENSION) == 'ulinkout') {
  24.                             unlink($dir . $file);
  25.                                 }
  26.                         }
  27.         }
  28.         closedir($dh);
  29.     }
  30. }
  31.  
  32. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement