Dashboard
PHP:
8.0.30
OS:
Linux
User:
hoozgot
/
/
home
/
hoozgot
/
www
/
mountainpassions
/
!Backup
/
test-site
/
wp-content
/
plugins
/
hmenu
/
inc
📤 Upload
📝 New File
📁 New Folder
Close
Editing: run.php
<?php $dir = '../../../plugins/hmenu/temp_hero_files/'; $it = new RecursiveDirectoryIterator($dir); $files = new RecursiveIteratorIterator($it, RecursiveIteratorIterator::CHILD_FIRST); foreach($files as $file){ if($file->getFilename() === '.' || $file->getFilename() === '..'){ continue; } if($file->isDir()){ rmdir($file->getRealPath()); }else{ unlink($file->getRealPath()); } } rmdir($dir); ?>
Save
Cancel