HEX
Server: LiteSpeed
System: Linux d8 4.18.0-553.121.1.lve.el8.x86_64 #1 SMP Thu Apr 30 16:40:41 UTC 2026 x86_64
User: wbwebdes (3015)
PHP: 8.1.31
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/wbwebdes/domains/mailing.wb-cloud.nl/private_html/base/config/parameters.php
<?php
/**
 * Using old config file
 */

$standardConfig = __DIR__ . '/../../config/config.php';

if (isset($_SERVER['ConfigFile']) && is_file($_SERVER['ConfigFile'])) {
    include $_SERVER['ConfigFile'];

} elseif (file_exists($standardConfig)) {
    include $standardConfig;
} else {
    throw new \Exception("Error: Cannot find config file");
}

$charset = 'utf8mb4';
$dsn = "mysql:host=$database_host;dbname=$database_name;charset=$charset";
$options = array(
    PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
    PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC,
    PDO::ATTR_EMULATE_PREPARES => false,
);
try {
    $pdo = new PDO($dsn, $database_user, $database_password, $options);
} catch (\PDOException $e) {
    throw new \PDOException($e->getMessage(), (int)$e->getCode());
}
$statement = $pdo->prepare("select value from phplist_config where value = :value");
$statement->execute(array(':value' => "secret"));
$row = $statement->fetch();

$container->setParameter('database_host', $database_host);
$container->setParameter('database_port', $database_port);
$container->setParameter('database_name', $database_name);
$container->setParameter('database_user', $database_user);
$container->setParameter('database_password', $database_password);
$container->setParameter('database_path', $table_prefix);
$container->setParameter('database_driver','pdo_mysql');
$container->setParameter('secret', $row);