PHP 8.3.31
Preview: _clone.php Size: 1.96 KB
/proc/thread-self/root/var/softaculous/weberp/_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, $data;
	
	//Do we meet the Minimum software requirements
	__requirements();
	
	if(!empty($error)){
		return false;
	}

	sclone_replace($replace_data, $__settings['softpath'].'/config.php', true);
	
	@srename($__settings['softpath'].'/companies/'.$data['softdb'], $__settings['softpath'].'/companies/'.$__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($data['softpath'])){
			$replace_data['RewriteBase /'] = 'RewriteBase '.$__settings['relativeurl'].'/';
		}elseif(is_dom_root($__settings['softpath'])){
			$replace_data['RewriteBase '.$data['relativeurl'].'/'] = 'RewriteBase /';
		}
		
		sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true);		
	}
}

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

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

}

?>

Directory Contents

Dirs: 6 × Files: 19

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2026-06-14 17:49:16
Edit Download
php53 DIR
- drwxr-xr-x 2026-06-14 17:49:16
Edit Download
php56 DIR
- drwxr-xr-x 2026-06-14 17:49:16
Edit Download
php71 DIR
- drwxr-xr-x 2026-06-14 17:49:16
Edit Download
php81 DIR
- drwxr-xr-x 2026-06-14 17:49:16
Edit Download
php82 DIR
- drwxr-xr-x 2026-06-14 17:49:16
Edit Download
53 B lrw-r--r-- 2026-06-13 11:35:10
Edit Download
6.51 KB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
9.07 KB lrw-r--r-- 2026-06-13 13:28:52
Edit Download
9.28 KB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
3.49 KB lrw-r--r-- 2026-06-13 13:28:52
Edit Download
4.06 KB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
924 B lrw-r--r-- 2021-12-23 11:54:36
Edit Download
4.51 KB lrw-r--r-- 2026-06-13 13:28:52
Edit Download
2.77 KB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
2.21 KB lrw-r--r-- 2026-06-13 13:28:52
Edit Download
1.41 KB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
497 B lrw-r--r-- 2026-06-13 11:35:10
Edit Download
4.32 KB lrw-r--r-- 2026-06-13 13:28:52
Edit Download
670 B lrw-r--r-- 2026-06-13 11:35:10
Edit Download
472.98 KB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
66.33 MB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
1.96 KB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
3.61 KB lrw-r--r-- 2026-06-13 11:35:10
Edit Download
433 B lrw-r--r-- 2026-06-13 11:35:10
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).