GRAYBYTE WORDPRESS FILE MANAGER9674

Server IP : 149.255.58.128 / Your IP : 216.73.216.19
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/akaunting/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /var/softaculous/akaunting//copy_dir.php
<?php 

@unlink('copy_dir.php');

$src = '[[srcpath]]/storage/app/uploads';
$dst = '[[softpath]]/storage/app/uploads';

function copy_r($path, $dest){
		
	// Is it a Directory ?
	if( is_dir($path) ){
		
		// Create the Destination Dir
		@mkdir($dest);
		
		$stat = stat($path);
		
		// Set the mode of the destination
		if(!empty($stat['mode'])){
			@chmod($dest, $stat['mode']);
		}
		
		// Set the UID
		if(!empty($stat['uid'])){
			@chown($dest, $stat['uid']);
		}
		
		// Set the GID
		if(!empty($stat['gid'])){
			@chgrp($dest, $stat['gid']);
		}
		
		// Start reading the current directory
		$objects = scandir($path);
		if( sizeof($objects) > 0 ){
			foreach( $objects as $file )
			{
				if( $file == "." || $file == ".." ){
					continue;
				}
				
				// Go on
				copy_r( $path.'/'.$file, $dest.'/'.$file );
			}
		}
		
		return true;
		
	}elseif( is_file($path) ){
		
		//To exclude some files if set in script's clone.php's __pre_unzip() function
		$ret = copy($path, $dest);
		$stat = stat($path);
		
		// Set the mode of the destination
		if(!empty($stat['mode'])){
			@chmod($dest, $stat['mode']);
		}
		
		// Set the UID
		if(!empty($stat['uid'])){
			@chown($dest, $stat['uid']);
		}
		
		// Set the GID
		if(!empty($stat['gid'])){
			@chgrp($dest, $stat['gid']);
		}
		
		return $ret;
		
	}else{
		return false;
	}
}

copy_r($src, $dst);

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
May 23 2025 09:37:16
0 / root
0755
images
--
May 01 2025 09:37:13
0 / root
0755
php53
--
May 01 2025 09:37:13
0 / root
0755
php56
--
May 01 2025 09:37:13
0 / root
0755
php71
--
May 01 2025 09:37:13
0 / root
0755
php81
--
May 01 2025 09:37:13
0 / root
0755
php82
--
May 01 2025 09:37:13
0 / root
0755
.env
0.71 KB
June 02 2022 06:46:46
0 / root
0644
clone.php
4.712 KB
April 30 2025 07:23:46
0 / root
0644
copy_dir.php
1.326 KB
December 23 2021 06:54:36
0 / root
0644
edit.php
4.384 KB
April 30 2025 07:23:46
0 / root
0644
edit.xml
0.437 KB
December 23 2021 06:54:36
0 / root
0644
extend.php
10.012 KB
April 30 2025 07:23:46
0 / root
0644
fileindex.php
0.248 KB
February 17 2025 04:42:34
0 / root
0644
import.php
3.549 KB
April 30 2025 07:23:46
0 / root
0644
info.xml
5.309 KB
April 30 2025 03:20:58
0 / root
0644
install.js
0.899 KB
December 23 2021 06:54:36
0 / root
0644
install.php
4.206 KB
April 30 2025 07:23:46
0 / root
0644
install.xml
2.937 KB
June 27 2022 07:19:40
0 / root
0644
md5
1.039 KB
April 30 2025 07:23:46
0 / root
0644
notes.txt
0.705 KB
October 09 2023 05:53:50
0 / root
0644
update_pass.php
0.542 KB
December 23 2021 06:54:36
0 / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF