UPGRADE NOTE: Do not edit or add to this file if you wish to upgrade AbanteCart to newer versions in the future. If you wish to customize AbanteCart for your needs please refer to http://www.AbanteCart.com for more information. ------------------------------------------------------------------------------ */ // Real path (operating system web root) to the directory where abantecart is installed $root_path = dirname(__FILE__); if (defined('IS_WINDOWS')) { $root_path = str_replace('\\', '/', $root_path); } define('DIR_ROOT', $root_path); // HTTP define('HTTP_SERVER', 'http://' . $_SERVER['HTTP_HOST'] . rtrim(dirname($_SERVER['PHP_SELF']), '/.\\') . '/'); define('HTTP_ABANTECART', 'http://' . $_SERVER['HTTP_HOST'] . rtrim(rtrim(dirname($_SERVER['PHP_SELF']), 'static_pages'), '/.\\'). '/'); // DIR define('DIR_APP_SECTION', str_replace('\'', '/', realpath(dirname(__FILE__))) . '/'); define('DIR_CORE', str_replace('\'', '/', realpath(dirname(__FILE__) . '/../')) . '/core/'); define('DIR_ABANTECART', str_replace('\'', '/', realpath(DIR_APP_SECTION . '../')) . '/'); // Startup require_once(DIR_ABANTECART . 'system/config.php'); // New Installation if (!defined('DB_DATABASE')) { header('Location: ../install/index.php'); exit; } session_start(); $error = 'Please check AbanteCart and webserver error logs for more details. You can check error log in the control panel if it is functional. Otherwise, refer to error log located on your web server'; if ( !empty($_SESSION['exception_msg']) ) { $error = $_SESSION['exception_msg']; unset($_SESSION['exception_msg']); } ?> '; ?>