| Server IP : 103.234.187.230 / Your IP : 216.73.216.216 Web Server : Apache System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/b2b.hellogtx.com/ |
Upload File : |
<?php
error_reporting(0);
// Define path to application directory
defined('APPLICATION_PATH') || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/application'));
// Define application environment
defined('APPLICATION_ENV') || define('APPLICATION_ENV', (getenv('APPLICATION_ENV') ? getenv('APPLICATION_ENV') : 'production'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, array(
realpath(APPLICATION_PATH . '/../library'),
get_include_path(),
)));
/** Zend_Application */
$foldername = 'b2bsite';
$HTTP_HOST = $_SERVER['HTTP_HOST'];
switch ($_SERVER['HTTP_HOST']) {
case 'b2b.hellogtx.com':
$foldername = 'b2bhellogtx';
break;
case 'b2buat.hellogtx.com':
$foldername = 'b2buat.hellogtx';
break;
default :
$foldername = 'b2bhellogtx';
break;
}
require_once 'Zend/Application.php';
require_once APPLICATION_PATH . '/configs/' . $foldername . '/constant.php';
// Create application, bootstrap, and run
$application = new Zend_Application(
APPLICATION_ENV,
APPLICATION_PATH . '/configs/' . $foldername . '/application.ini'
);
$localConfigFile = APPLICATION_PATH.'/configs/general.ini';
if(is_file($localConfigFile)) {
$config = new Zend_Config($application->getOptions(), true);
$local = new Zend_Config_Ini($localConfigFile);
$config->merge($local);
$application->setOptions($config->toArray());
}
$application->bootstrap()
->run();