HEX
Server: LiteSpeed
System: Linux s12873.lon1.stableserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: jairicem (1242)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //opt/a2-optimized/prestashop/configuration-update
#!/usr/local/bin/php
<?php
// #!/usr/local/bin/php points to PHP 8.0 on new servers. presta shop is not ready for PHP 8


$username = trim(exec("whoami"));
if($username == 'root'){
    die("Please don't run this as root!");
}

if(!file_exists('config/config.inc.php')){
  die("This is not a prestashop site");
}

require_once('config/config.inc.php');

Configuration::updateGlobalValue($argv[1],$argv[2]);