| Server IP : 217.160.0.15 / Your IP : 216.73.216.196 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u37981780 ( 1696858) PHP Version : 8.2.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/oneclick/Prestashop/1.6.1.4/5/scripts/ |
Upload File : |
<?php
$args = array(
'step' => 'all',
'language' => substr(LOCALE, 0, 2),
'all_languages' => '1',
'timezone' => TIMEZONE,
'base_uri' => substr(BASE_URL_PATH, 0, -1),
'domain' => BASE_URL_HOST,
'db_server' => CONFIG_HOST_4,
'db_user' => DB_MAIN_LOGIN,
'db_password' => DB_MAIN_PASSWORD,
'db_name' => DB_MAIN_NAME,
'db_clear' => '0',
'db_create' => '0',
'prefix' => DB_MAIN_PREFIX,
'engine' => 'InnoDB',
'name' => SITE_NAME,
'activity' => '0',
'country' => strtolower(substr(LOCALE, -2)),
'firstname' => ADMIN_FIRSTNAME,
'lastname' => ADMIN_LASTNAME,
'password' => ADMIN_PASSWORD,
'email' => ADMIN_EMAIL,
'license' => '0',
'newsletter' => '0',
'send_email' => '0',
);
system("rm -rf $web_dir/install/langs");
system("cp -rf $package/langs $web_dir/install");
$command = "php5.5-cli -f $web_dir/install/index_cli.php --";
foreach ($args as $argName => $argValue) {
$command .= " --$argName='$argValue'";
}
system($command);
system("rm -rf $web_dir/install");
system("mv $web_dir/admin $web_dir/backoffice");
Prestashop::disableLanguagesExcept(substr(LOCALE, 0, 2));
Prestashop::activateHtaccess();
file_put_contents("$web_dir/.version", '1614');