$77 GRAYBYTE WORDPRESS FILE MANAGER $36

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/var/softaculous/lychee/

HOME
Current File : /var/softaculous/lychee//_clone.php
<?php

//////////////////////////////////////////////////////////////
//===========================================================
// clone.php
//===========================================================
// SOFTACULOUS 
// Version : 4.2.8
// Inspired by the DESIRE to be the BEST OF ALL
// ----------------------------------------------------------
// Started by: Alons
// Date:       10th Jan 2009
// Time:       21:00 hrs
// Site:       http://www.softaculous.com/ (SOFTACULOUS)
// ----------------------------------------------------------
// Please Read the Terms of use at http://www.softaculous.com
// ----------------------------------------------------------
//===========================================================
// (c)Softaculous Inc.
//===========================================================
//////////////////////////////////////////////////////////////

if(!defined('SOFTACULOUS')){

	die('Hacking Attempt');

}

//The Install process
function __clone(){

global $__settings, $error, $software, $globals, $replace_data, $source_data;
	
	//Do we meet the Minimum software requirements
	__requirements();
	
	if(!empty($error)){
		return false;
	}
	
	$temp = parse_url($source_data['softurl']);
	$source_data['relativeurl'] = $temp['path'];
	
	$temp = parse_url($__settings['softurl']);
	$__settings['relativeurl'] = $temp['path'];
	
	// config.php	
	$file = sfile($__settings['softpath'].'/data/config.php');
	
	if(empty($file)){
		$error[] = 'Could not read the config file to get the dbprefix.';
		return false;
	}
	
	soft_preg_replace('/\$dbTablePrefix(\s*?)=(\s*?)("|\')(.*?)("|\')/is', $file, $__settings['dbprefix'], 4);
	
	sclone_replace($replace_data, $__settings['softpath'].'/data/config.php', true);
	
	//sql
	$__settings['identifier'] = md5(microtime(true));
	$query = "UPDATE `".$__settings['dbprefix']."_lychee_settings` SET `value`='".$__settings['identifier']."' WHERE `key` = 'identifier';";
	sdb_query($query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
		
	if(sfile_exists($__settings['softpath'].'/.htaccess')){
	
		// If the installation is on root domain we need to change the below relative URL
		if(is_dom_root($source_data['softpath'])){
			$replace_data['RewriteBase \'/\''] = 'RewriteBase \''.$__settings['relativeurl'].'\'';
			$replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl'];
		}elseif(is_dom_root($__settings['softpath'])){
			$replace_data['RewriteBase \''.$source_data['relativeurl'].'\''] = 'RewriteBase \'/\'';
			$replace_data['RewriteBase '.$source_data['relativeurl']] = 'RewriteBase /';
		}
		
		sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true);		
	}
	
	// CHMOD some files
	@schmod($__settings['softpath'].'/uploads/', $globals['odc'], 1);
}

//Check whether the Minimum Software configuration matches
function __requirements(){

global $__settings, $error, $software;
	
	return true;

}

?>


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
5 Apr 2026 1.55 AM
root / root
0755
images
--
25 Mar 2026 1.55 AM
root / root
0755
php53
--
25 Mar 2026 1.55 AM
root / root
0755
php56
--
25 Mar 2026 1.55 AM
root / root
0755
php71
--
25 Mar 2026 1.55 AM
root / root
0755
php81
--
25 Mar 2026 1.55 AM
root / root
0755
php82
--
25 Mar 2026 1.55 AM
root / root
0755
.env
11.074 KB
9 Mar 2026 9.04 AM
root / root
0644
.htaccess
0.306 KB
5 Jan 2023 10.07 AM
root / root
0644
_clone.php
2.898 KB
23 Dec 2021 11.54 AM
root / root
0644
_edit.php
4.527 KB
23 Dec 2021 11.54 AM
root / root
0644
_edit.xml
0.423 KB
23 Dec 2021 11.54 AM
root / root
0644
changelog.txt
2.496 KB
24 Mar 2026 9.33 AM
root / root
0644
extend.php
9.909 KB
24 Mar 2026 12.29 PM
root / root
0644
fileindex.php
0.221 KB
26 Dec 2022 11.09 AM
root / root
0644
import.php
4.04 KB
24 Mar 2026 12.29 PM
root / root
0644
info.xml
4.651 KB
24 Mar 2026 9.33 AM
root / root
0644
install.js
0.902 KB
23 Dec 2021 11.54 AM
root / root
0644
install.php
5.563 KB
24 Mar 2026 12.29 PM
root / root
0644
install.xml
0.438 KB
23 Dec 2021 11.54 AM
root / root
0644
lychee.sql
128.503 KB
24 Mar 2026 9.33 AM
root / root
0644
lychee.zip
40.82 MB
24 Mar 2026 9.33 AM
root / root
0644
md5
2.751 KB
24 Mar 2026 12.29 PM
root / root
0644
notes.txt
1.96 KB
18 Mar 2026 5.30 AM
root / root
0644
update_pass.php
0.598 KB
5 Sep 2022 11.24 AM
root / root
0644
upgrade.php
3.561 KB
24 Mar 2026 12.29 PM
root / root
0644
upgrade.xml
0.561 KB
18 Mar 2026 5.30 AM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF