File Manager
Pro
/data/web/virtuals/8819/virtual/www/mp3/public/includes
PHP 7.4.33
Linux
/data/web/virtuals/8819/virtual/www/mp3/public/includes/functions.php
6.8 KB
0640
Back
<?php $folderpath ='../uploads'; /****************************** Mass Delete png files ******************************/ if($_POST['action'] == 'png') { $file_ext = '/*.png'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete jpg files ******************************/ if($_POST['action'] == 'jpg') { $file_ext = '/*.jpg'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete gif files ******************************/ if($_POST['action'] == 'gif') { $file_ext = '/*.gif'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete bmp files ******************************/ if($_POST['action'] == 'bmp') { $file_ext = '/*.bmp'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete svg files ******************************/ if($_POST['action'] == 'svg') { $file_ext = '/*.svg'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete mp4 files ******************************/ if($_POST['action'] == 'mp4') { $file_ext = '/*.mp4'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete mkv files ******************************/ if($_POST['action'] == 'mkv') { $file_ext = '/*.mkv'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete avi files ******************************/ if($_POST['action'] == 'avi') { $file_ext = '/*.avi'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete flv files ******************************/ if($_POST['action'] == 'flv') { $file_ext = '/*.flv'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete mov files ******************************/ if($_POST['action'] == 'mov') { $file_ext = '/*.mov'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete wmv files ******************************/ if($_POST['action'] == 'wmv') { $file_ext = '/*.wmv'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete mpg files ******************************/ if($_POST['action'] == 'mpg') { $file_ext = '/*.mpg'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete 3gp files ******************************/ if($_POST['action'] == '3gp') { $file_ext = '/*.3gp'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete mp3 files ******************************/ if($_POST['action'] == 'mp3') { $file_ext = '/*.mp3'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete wav files ******************************/ if($_POST['action'] == 'wav') { $file_ext = '/*.wav'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete rar files ******************************/ if($_POST['action'] == 'rar') { $file_ext = '/*.rar'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete zip files ******************************/ if($_POST['action'] == 'zip') { $file_ext = '/*.zip'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete exe files ******************************/ if($_POST['action'] == 'exe') { $file_ext = '/*.exe'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete txt files ******************************/ if($_POST['action'] == 'txt') { $file_ext = '/*.txt'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete doc files ******************************/ if($_POST['action'] == 'doc') { $file_ext = '/*.doc'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } /****************************** Mass Delete pdf files ******************************/ if($_POST['action'] == 'pdf') { $file_ext = '/*.pdf'; $file_path = $folderpath.$file_ext; $files = glob($file_path); //get all file names foreach($files as $file){ if(is_file($file)) unlink($file); //delete file } } ?>
Cancel
Download
Save changes
File Manager Pro · single-file PHP 7.4.33 on Linux · paths encrypted in URL (AES-256-CTR)