Server IP : 149.255.58.128 / Your IP : 216.73.216.221
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
Upload Files :
Command :
Current File : /var/softaculous/thelia//_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'];
// database.yml
sclone_replace($replace_data, $__settings['softpath'].'/local/config/database.yml', true);
//sql
$__settings['remember_me_serial'] = uniqid();
$query = "UPDATE `admin` SET `remember_me_serial`='".$__settings['remember_me_serial']."' WHERE `id` = 1;";
sdb_query($query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
$__settings['formsecret'] = md5($__settings['softpath'].'/core/lib/Thelia/Form');
$query = "UPDATE `config` SET `value`='".$__settings['formsecret']."' WHERE `name` = 'form.secret';";
sdb_query($query, $__settings['softdbhost'], $__settings['softdbuser'], $__settings['softdbpass'], $__settings['softdb']);
//.htaccess
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 /';
}
$replace_data['^'.$source_data['relativeurl'].'/$'] = '^'.$__settings['relativeurl'].'/$';
sclone_replace($replace_data, $__settings['softpath'].'/.htaccess', true);
}
if($globals['os'] != 'windows'){
// Have to remove this files so symlinks can be created
srm($__settings['softpath'].'/bin/propel');
srm($__settings['softpath'].'/bin/phpunit');
srm($__settings['softpath'].'/bin/lessc');
//php function to prepare symlinks on all platforms
symlink($__settings['softpath'].'/core/vendor/phpunit/phpunit/phpunit', $__settings['softpath'].'/bin/phpunit');
symlink($__settings['softpath'].'/core/vendor/propel/propel/bin/propel', $__settings['softpath'].'/bin/propel');
symlink($__settings['softpath'].'/core/vendor/oyejorge/less.php/bin/lessc', $__settings['softpath'].'/bin/lessc');
}
//CHMOD some files
@schmod($__settings['softpath'].'/log/log-thelia.txt', $globals['ofc']);
@schmod($__settings['softpath'].'/cache/', $globals['odc'], 1);
@schmod($__settings['softpath'].'/web/', $globals['odc'], 1);
@schmod($__settings['softpath'].'/local/session/', $globals['odc'], 1);
@schmod($__settings['softpath'].'/local/media/', $globals['odc'], 1);
}
//Check whether the Minimum Software configuration matches
function __requirements(){
global $__settings, $error, $software;
return true;
}
?>
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | May 23 2025 09:37:16 | 0 / root | 0755 | |
images | -- | January 30 2025 10:37:13 | 0 / root | 0755 | |
php53 | -- | January 30 2025 10:37:13 | 0 / root | 0755 | |
php56 | -- | January 30 2025 10:37:13 | 0 / root | 0755 | |
php71 | -- | January 30 2025 10:37:13 | 0 / root | 0755 | |
php81 | -- | January 30 2025 10:37:13 | 0 / root | 0755 | |
php82 | -- | January 30 2025 10:37:13 | 0 / root | 0755 | |
| | | | | |
.env.local | 0.179 KB | June 13 2024 03:58:52 | 0 / root | 0644 | |
.htaccess | 0.086 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
_clone.php | 3.828 KB | June 13 2024 03:58:52 | 0 / root | 0644 | |
changelog.txt | 4.474 KB | January 30 2025 04:44:18 | 0 / root | 0644 | |
edit.php | 4.249 KB | January 30 2025 04:46:10 | 0 / root | 0644 | |
edit.xml | 0.423 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
extend.php | 8.753 KB | January 30 2025 04:46:10 | 0 / root | 0644 | |
fileindex.php | 0.306 KB | January 30 2025 04:44:18 | 0 / root | 0644 | |
import.php | 3.763 KB | January 30 2025 04:46:10 | 0 / root | 0644 | |
info.xml | 4.298 KB | January 30 2025 04:44:18 | 0 / root | 0644 | |
install.js | 0.903 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |
install.php | 6.153 KB | January 30 2025 04:46:10 | 0 / root | 0644 | |
install.xml | 1.487 KB | June 13 2024 03:58:52 | 0 / root | 0644 | |
md5 | 1.604 KB | January 30 2025 04:46:10 | 0 / root | 0644 | |
notes.txt | 0.574 KB | June 13 2024 03:58:52 | 0 / root | 0644 | |
update_pass.php | 0.486 KB | December 23 2021 06:54:36 | 0 / root | 0644 | |