Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * PHP ulinkout Extension Remove Tools
- *
- * @author jaideejung007 http://www.discuzthai.com
- * @copyright 2016 DiscuzThai
- * @license https://creativecommons.org/licenses/by/3.0/th/
- *
- * @version 0.1
- *
- * How to:
- * Save as to clr.php file and upload to your host within .ulinkout files, and run http://domain.com/folder/clr.php
- */
- $dir = "./";
- set_time_limit(0);
- if (is_dir($dir)) {
- if ($dh = opendir($dir)) {
- while (($file = readdir($dh)) !== false) {
- if(is_file($dir . $file)) {
- if(pathinfo($file, PATHINFO_EXTENSION) == 'ulinkout') {
- unlink($dir . $file);
- }
- }
- }
- closedir($dh);
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement