Whoops, it looks like you have an invalid PHP version.

Magento supports PHP 5.2.0 or newer. Find out how to install Magento using PHP-CGI as a work-around.

'; exit; } /** * Error reporting */ error_reporting(E_ALL | E_STRICT); /** * Compilation includes configuration file */ define('MAGENTO_ROOT', getcwd()); $compilerConfig = MAGENTO_ROOT . '/includes/config.php'; if (file_exists($compilerConfig)) { include $compilerConfig; } $mageFilename = MAGENTO_ROOT . '/app/Mage.php'; $maintenanceFile = 'maintenance.flag'; /* toey */ $ip = $_SERVER['REMOTE_ADDR']; $allowed = array('110.77.221.175','2.2.2.2'); /* toey */ if (!file_exists($mageFilename)) { if (is_dir('downloader')) { header("Location: downloader"); } else { echo $mageFilename." was not found"; } exit; } if (file_exists($maintenanceFile)) { include_once dirname(__FILE__) . '/errors/503.php'; exit; } require_once $mageFilename; #Varien_Profiler::enable(); if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) { Mage::setIsDeveloperMode(true); } #ini_set('display_errors', 1); umask(0); /* Store or website code */ $mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : ''; /* Run store or run website */ $mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store'; //Mage::app(); //$geoIP = Mage::getSingleton('geoip/country'); //$countrycode=$geoIP->getCountry(); /** * Returns you the ISO 3166-1 code of visitors country. */ //switch($countrycode){ // case 'TH': /* Thailand */ // header('location: http://www.bigbeefarm.com'); // break; /* For European Countries Start */ // default: /* Default */ //=> แยกตามภาษากรณีใน Host เดียวกัน // switch($countrycode){ // case 'RU': /* รัสเซีย */ // $mageRunType = 'website'; // $mageRunCode = 'RU'; // break; // } //=> End แยกตามภาษากรณีใน Host เดียวกัน Mage::run($mageRunCode, $mageRunType); // break; //} //echo $geoIP->getCountry();