GRAYBYTE WORDPRESS FILE MANAGER7259

Server IP : 149.255.58.128 / Your IP : 216.73.216.231
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /var/softaculous/presta178/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


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

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

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
..
--
May 23 2025 09:37:16
0 / root
0755
images
--
May 08 2024 09:31:53
0 / root
0755
php53
--
May 08 2024 09:31:53
0 / root
0755
php56
--
May 08 2024 09:31:53
0 / root
0755
php71
--
May 08 2024 09:31:53
0 / root
0755
php81
--
May 08 2024 09:31:53
0 / root
0755
php82
--
May 08 2024 09:31:53
0 / root
0755
.htaccess
3.307 KB
March 23 2023 05:49:58
0 / root
0644
_bootstrap.php
6.104 KB
March 23 2023 05:49:58
0 / root
0644
bootstrap.php
6.026 KB
March 23 2023 05:49:58
0 / root
0644
changelog.txt
6.525 KB
January 18 2024 07:34:48
0 / root
0644
clone.php
20.867 KB
May 02 2024 07:28:46
0 / root
0644
clone_bootstrap.php
6.152 KB
March 23 2023 05:49:58
0 / root
0644
edit.php
4.424 KB
May 02 2024 07:28:46
0 / root
0644
edit.xml
0.437 KB
April 24 2023 12:52:44
0 / root
0644
fileindex.php
0.319 KB
March 23 2023 05:49:58
0 / root
0644
import.php
5.813 KB
May 02 2024 07:28:46
0 / root
0644
info.xml
4.175 KB
May 02 2024 05:25:50
0 / root
0644
install.js
1.123 KB
March 23 2023 05:49:58
0 / root
0644
install.php
18.786 KB
May 02 2024 07:28:46
0 / root
0644
install.xml
1.463 KB
March 23 2023 05:49:58
0 / root
0644
md5
6.498 KB
May 02 2024 07:28:46
0 / root
0644
new_order.html
49.706 KB
March 23 2023 05:49:58
0 / root
0644
notes.txt
1.652 KB
March 23 2023 05:49:58
0 / root
0644
order_conf.html
50.154 KB
January 01 2024 02:38:44
0 / root
0644
parameters.php
0.729 KB
March 23 2023 05:49:58
0 / root
0644
parameters.yml
0.011 KB
March 23 2023 05:49:58
0 / root
0644
return_slip.html
38.218 KB
March 23 2023 05:49:58
0 / root
0644
robots.txt
3.363 KB
March 23 2023 05:49:58
0 / root
0644
settings.inc.php
0.022 KB
March 23 2023 05:49:58
0 / root
0644
shop1.json
2.713 KB
March 23 2023 05:49:58
0 / root
0644
soft_delete.php
3.078 KB
March 23 2023 05:49:58
0 / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF