GRAYBYTE WORDPRESS FILE MANAGER2369

Server IP : 198.54.121.189 / Your IP : 216.73.216.112
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /var/softaculous/microweber/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /var/softaculous/microweber//soft_delete.php
<?php

//Remove var/cache directory recursively
rmdir_recursive_fn('[[softpath]]/bootstrap/cache/');

function rmdir_recursive_fn($path){
		
	$path = (substr($path, -1) == '/' || substr($path, -1) == '\\' ? $path : $path.'/');
	
	resetfilelist();
	
	$files = filelist($path, 1, 0, 'all');
	$files = (!is_array($files) ? array() : $files);
	
	//First delete the files only
	foreach($files as $k => $v){
			@chmod($k, 0777);
		if(file_exists($k) && is_file($k) && @filetype($k) == "file"){
			@unlink($k);
		}
	}
	
	@clearstatcache();
	
	$folders = filelist($path, 1, 1, 'all');
	$folders = (!is_array($folders) ? array() : $folders);
	@krsort($folders);

	//Now Delete the FOLDERS
	foreach($folders as $k => $v){
			@chmod($k, 0777);
		if(is_dir($k)){
			@rmdir($k);
		}
	}
	
	@rmdir($path);
	
	@clearstatcache();

}

function resetfilelist(){
global $directorylist;
	$directorylist = array();
}

function filelist($startdir="./", $searchSubdirs=1, $directoriesonly=0, $maxlevel="all", $level=1, $reset = 1) {
   //list the directory/file names that you want to ignore
   $ignoredDirectory[] = ".";
   $ignoredDirectory[] = "..";
   $ignoredDirectory[] = "_vti_cnf";
   global $directorylist;    //initialize global array
   
   if(substr($startdir, -1) != '/'){
		$startdir = $startdir.'/';
	}
   
   if (is_dir($startdir)) {
       if ($dh = opendir($startdir)) {
           while (($file = readdir($dh)) !== false) {
               if (!(array_search($file,$ignoredDirectory) > -1)) {
                 if (@filetype($startdir . $file) == "dir") {
                     
					   //build your directory array however you choose;
                       //add other file details that you want.
					   
                       $directorylist[$startdir . $file]['level'] = $level;
                       $directorylist[$startdir . $file]['dir'] = 1;
                       $directorylist[$startdir . $file]['name'] = $file;
                       $directorylist[$startdir . $file]['path'] = $startdir;
                       if ($searchSubdirs) {
                           if ((($maxlevel) == "all") or ($maxlevel > $level)) {
                               filelist($startdir . $file . "/", $searchSubdirs, $directoriesonly, $maxlevel, ($level + 1), 0);
                           }
                       }
					  
					   
                   } else {
                       if (!$directoriesonly) {
					     
					  //  echo substr(strrchr($file, "."), 1);
                           //if you want to include files; build your file array 
                           //however you choose; add other file details that you want.
                         $directorylist[$startdir . $file]['level'] = $level;
                         $directorylist[$startdir . $file]['dir'] = 0;
                         $directorylist[$startdir . $file]['name'] = $file;
                         $directorylist[$startdir . $file]['path'] = $startdir;
						  
					 
     }}}}
           closedir($dh);
}}

if(!empty($reset)){
	$r = $directorylist;
	$directorylist = array();
	return($r);
}
}

@unlink('soft_delete.php');

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 13 2025 08:30:22
root / root
0755
images
--
February 26 2025 09:46:12
root / root
0755
php53
--
February 26 2025 09:46:12
root / root
0755
php56
--
February 26 2025 09:46:12
root / root
0755
php71
--
February 26 2025 09:46:12
root / root
0755
php81
--
February 26 2025 09:46:12
root / root
0755
php82
--
February 26 2025 09:46:12
root / root
0755
app.php
0.575 KB
February 21 2022 10:45:10
root / root
0644
changelog.txt
2.129 KB
February 24 2025 10:22:42
root / root
0644
clone.php
5.267 KB
February 24 2025 11:44:10
root / root
0644
database.php
1.367 KB
May 22 2024 11:21:04
root / root
0644
edit.php
4.641 KB
February 24 2025 11:44:10
root / root
0644
edit.xml
0.423 KB
December 23 2021 11:54:36
root / root
0644
extend.php
10.76 KB
February 24 2025 11:44:10
root / root
0644
fileindex.php
0.599 KB
November 27 2024 10:07:08
root / root
0644
import.php
3.082 KB
February 24 2025 11:44:10
root / root
0644
info.xml
4.25 KB
February 24 2025 10:22:42
root / root
0644
install.js
0.899 KB
December 23 2021 11:54:36
root / root
0644
install.php
7.21 KB
February 24 2025 11:44:10
root / root
0644
install.xml
0.736 KB
December 23 2021 11:54:36
root / root
0644
install_item_log.txt
0.028 KB
December 18 2023 12:19:26
root / root
0644
md5
2.438 KB
February 24 2025 11:44:10
root / root
0644
microweber.php
0.273 KB
February 24 2025 10:22:42
root / root
0644
microweber.sql
222.831 KB
February 24 2025 10:22:42
root / root
0644
microweber.zip
297.11 MB
February 24 2025 10:22:42
root / root
0644
notes.txt
0.703 KB
December 12 2023 09:01:40
root / root
0644
soft_delete.php
3.028 KB
December 23 2021 11:54:36
root / root
0644
update_pass.php
0.527 KB
December 23 2021 11:54:36
root / root
0644
upgrade.php
6.497 KB
February 24 2025 11:44:10
root / root
0644
upgrade.xml
0.399 KB
December 12 2023 09:01:40
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF