/*{START_PHP_INI_PATH}*/ define('__PHP_PATH', realpath(__SITE_PATH . '/../uthando/php')); /*{END_PHP_INI_PATH}*/ // Set include paths. $ini_path = '.' . PATH_SEPARATOR . __PHP_PATH . PATH_SEPARATOR . __PHP_PATH . '/PEAR' . PATH_SEPARATOR . __PHP_PATH . '/Uthando' . PATH_SEPARATOR . __PHP_PATH . '/Uthando/functions' . PATH_SEPARATOR . __SITE_PATH . '/modules' . PATH_SEPARATOR . __SITE_PATH . '/components'; set_include_path($ini_path); // Include functions. require_once 'functions.php'; $timer = new Benchmark_Timer(); $timer->start(); $registry = new Registry(); require 'Dbug/FirePHP.class.php'; $registry->firephp = FirePHP::getInstance(true); $registry->setSite(realpath(__SITE_PATH . '/../uthando/ini/uthandoSites.ini.php')); $registry->loadIniFile('uthando', 'config'); $registry->setDefaults(); if ($registry->get('config.server.compat_router')) { require_once 'includes/CompatRouter.php'; } $uthando = new Uthando($registry); $registry->template = new HTML_Template($registry, $registry->get('config.site.template')); $registry->template->addParameter('merchant_name', $registry->get('config.server.site_name')); $registry->session = new Session($registry); UthandoUser::setUserInfo(); if (UthandoUser::authorize()) { $registry->loggedInUser = true; $uthando->addParameter('login_status', "<p>You are logged in as: " . $_SESSION['name'] . "</p>"); } else { $registry->loggedInUser = false; } try {