X7ROOT File Manager
Current Path:
/var/softaculous/presta17
var
/
softaculous
/
presta17
/
??
..
??
.htaccess
(5.34 KB)
??
_bootstrap.php
(5.09 KB)
??
bootstrap.php
(5.01 KB)
??
bootstrap_old
??
changelog.txt
(15.89 KB)
??
clone.php
(28.36 KB)
??
clone_bootstrap.php
(5.14 KB)
??
edit.php
(4.93 KB)
??
edit.xml
(447 B)
??
extend.php
(8.48 KB)
??
fileindex.php
(403 B)
??
images
??
import.php
(6.63 KB)
??
info.xml
(4.7 KB)
??
install.js
(1.12 KB)
??
install.php
(20.75 KB)
??
install.xml
(1.51 KB)
??
md5
(1.99 KB)
??
new_order.html
(56.92 KB)
??
notes.txt
(2.95 KB)
??
order_conf.html
(56.13 KB)
??
parameters.php
(830 B)
??
parameters.yml
(11 B)
??
php53
??
php56
??
php71
??
php81
??
php82
??
presta17.sql
(706.43 KB)
??
presta17.zip
(135.99 MB)
??
return_slip.html
(43.86 KB)
??
robots.txt
(4.73 KB)
??
settings.inc.php
(23 B)
??
shop1.json
(3.16 KB)
??
soft_delete.php
(3.08 KB)
??
update_appkey.php
(544 B)
??
update_pass.php
(497 B)
Editing: clone_bootstrap.php
<?php /** * For the full copyright and license information, please view the * docs/licenses/LICENSE.txt file that was distributed with this source code. */ use PrestaShop\PrestaShop\Adapter\ServiceLocator; use PrestaShop\PrestaShop\Core\ContainerBuilder; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate; use Symfony\Component\Yaml\Yaml; $container_builder = new ContainerBuilder(); $legacyContainer = $container_builder->build(); ServiceLocator::setServiceContainerInstance($legacyContainer); if (!file_exists(_PS_CACHE_DIR_)) { @mkdir(_PS_CACHE_DIR_); $warmer = new CacheWarmerAggregate([ new PrestaShopBundle\Cache\LocalizationWarmer(_PS_VERSION_, 'en'), //@replace hard-coded Lang ]); $warmer->warmUp(_PS_CACHE_DIR_); } $configDirectory = __DIR__. '/../app/config'; $phpParametersFilepath = $configDirectory . '/parameters.php'; $yamlParametersFilepath = $configDirectory . '/parameters.yml'; $filesystem = new Filesystem(); $exportPhpConfigFile = function ($config, $destination) use ($filesystem) { try { $filesystem->dumpFile($destination, '<?php return '.var_export($config, true).';'."\n"); } catch (IOException $e) { return false; } return true; }; // Bootstrap an application with parameters.yml, which has been installed before PHP parameters file support if (!file_exists($phpParametersFilepath) && file_exists($yamlParametersFilepath)) { $parameters = Yaml::parseFile($yamlParametersFilepath); if ($exportPhpConfigFile($parameters, $phpParametersFilepath)) { $filesystem->dumpFile($yamlParametersFilepath, 'parameters:' . "\n"); } } $lastParametersModificationTime = (int)@filemtime($phpParametersFilepath); if ($lastParametersModificationTime) { $cachedParameters = _PS_CACHE_DIR_. 'appParameters.php'; $lastParametersCacheModificationTime = (int)@filemtime($cachedParameters); if (!$lastParametersCacheModificationTime || $lastParametersCacheModificationTime < $lastParametersModificationTime) { // When parameters file is available, update its cache if it is stale. if (file_exists($phpParametersFilepath)) { $config = require $phpParametersFilepath; $exportPhpConfigFile($config, $cachedParameters); } elseif (file_exists($yamlParametersFilepath)) { $config = Yaml::parseFile($yamlParametersFilepath); $exportPhpConfigFile($config, $cachedParameters); } } $config = require_once _PS_CACHE_DIR_ . 'appParameters.php'; array_walk($config['parameters'], function (&$param) { $param = str_replace('%%', '%', $param ?? ''); }); $database_host = $config['parameters']['database_host']; if (!empty($config['parameters']['database_port'])) { $database_host .= ':'. $config['parameters']['database_port']; } define('_DB_SERVER_', $database_host); if (defined('_PS_IN_TEST_')) { define('_DB_NAME_', 'test_'.$config['parameters']['database_name']); } else { define('_DB_NAME_', $config['parameters']['database_name']); } define('_DB_USER_', $config['parameters']['database_user']); define('_DB_PASSWD_', $config['parameters']['database_password']); define('_DB_PREFIX_', $config['parameters']['database_prefix']); define('_MYSQL_ENGINE_', $config['parameters']['database_engine']); define('_PS_CACHING_SYSTEM_', $config['parameters']['ps_caching']); if (!defined('PS_IN_UPGRADE') && !defined('_PS_IN_TEST_')) { define('_PS_CACHE_ENABLED_', $config['parameters']['ps_cache_enable']); } else { define('_PS_CACHE_ENABLED_', 0); $config['parameters']['ps_cache_enable'] = 0; } // Legacy cookie if (array_key_exists('cookie_key', $config['parameters'])) { define('_COOKIE_KEY_', $config['parameters']['cookie_key']); } else { // Define cookie key if missing to prevent failure in composer post-install script define('_COOKIE_KEY_', Tools::passwdGen(56)); } if (array_key_exists('cookie_iv', $config['parameters'])) { define('_COOKIE_IV_', $config['parameters']['cookie_iv']); } else { // Define cookie IV if missing to prevent failure in composer post-install script define('_COOKIE_IV_', Tools::passwdGen(32)); } // New cookie unset($config['parameters']['new_cookie_key']); if (array_key_exists('new_cookie_key', $config['parameters'])) { define('_NEW_COOKIE_KEY_', $config['parameters']['new_cookie_key']); } else { // Define cookie key if missing to prevent failure in composer post-install script $key = PhpEncryption::createNewRandomKey(); echo '<new_cookie_key>'.$key.'</new_cookie_key>'; @unlink($cachedParameters); define('_NEW_COOKIE_KEY_', $key); } define('_PS_CREATION_DATE_', $config['parameters']['ps_creation_date']); if (isset($config['parameters']['_rijndael_key'], $config['parameters']['_rijndael_iv'])) { define('_RIJNDAEL_KEY_', $config['parameters']['_rijndael_key']); define('_RIJNDAEL_IV_', $config['parameters']['_rijndael_iv']); } }
Upload File
Create Folder