Exemplo n.º 1
0
<?php

/**
 *  MODX Configuration file
 */
$httpHost = $_SERVER['HTTP_HOST'];
require_once dirname(dirname(dirname(__FILE__))) . '/api_PBA3uA5b6c/config/aqModxConfig.class.php';
$aqModxConfig = new aqModxConfig();
$dbSettings = $aqModxConfig->getEffectiveSettings($httpHost);
$database_type = 'mysql';
$database_connection_charset = 'utf8';
$database_server = $dbSettings['dbServer'];
$database_user = $dbSettings['dbUser'];
$database_password = $dbSettings['dbPwd'];
$dbase = $dbSettings['db'];
$table_prefix = 'aq_';
$database_dsn = 'mysql:host=' . $database_server . ';dbname=' . $dbase . ';charset=utf8';
$config_options = array();
$driver_options = array();
$lastInstallTime = 1454444319;
$site_id = 'modx56b10f1ff0ea05.81609993';
$site_sessionname = 'SN56b10e1a61e19';
$https_port = '443';
$uuid = '21e1f71a-64ee-4f0f-bf52-9b47941d50fc';
if (!defined('MODX_CORE_PATH')) {
    $modx_core_path = $_SERVER['DOCUMENT_ROOT'] . '/core/';
    define('MODX_CORE_PATH', $modx_core_path);
}
if (!defined('MODX_PROCESSORS_PATH')) {
    $modx_processors_path = $_SERVER['DOCUMENT_ROOT'] . '/core/model/modx/processors/';
    define('MODX_PROCESSORS_PATH', $modx_processors_path);
Exemplo n.º 2
0
<?php

require_once dirname(MODX_CORE_PATH) . '/api_PBA3uA5b6c/config/aqModxConfig.class.php';
$aqModxConfig = new aqModxConfig();
return 'http://' . $aqModxConfig->getDomainPath($domain);