Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by http://DeZender.Net
- * @ deZender (PHP7 Decoder for ionCube Encoder)
- *
- * @ Version : 4.1.0.1
- * @ Author : DeZender
- * @ Release on : 29.08.2020
- * @ Official site : http://DeZender.Net
- *
- */
- function deleteCache($dir)
- {
- $success = 0;
- $error = 0;
- $path = @opendir($dir);
- if ($path) {
- while ($file = @readdir($path)) {
- if ((gettype($file) != 'boolean') && !is_dir($file)) {
- if (($file != '.htaccess') && ($file != 'index.html') && ($file != '.') && ($file != '..')) {
- if (in_array(pathinfo($file, PATHINFO_EXTENSION), ['json', 'tmp', 'html'])) {
- if (unlink($dir . $file)) {
- $success++;
- continue;
- }
- $error++;
- }
- }
- }
- }
- @closedir($path);
- }
- ...............................................................................
- ...............................................
- .....................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement