Sorry,website is upgrading...Please try again later. Thank you for visit our website.
'; exit;*/ /** * Magento * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/osl-3.0.php * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@magentocommerce.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade Magento to newer * versions in the future. If you wish to customize Magento for your * needs please refer to http://www.magentocommerce.com for more information. * * @category Mage * @package Mage * @copyright Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com) * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) */ if (version_compare(phpversion(), '5.2.0', '<')===true) { echo '

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; } //Header( "Location: http://www.newfrog.com/updating.html");exit; //屏蔽中文浏览器,移动端除外 $http_user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']): ''; $http_accept = isset($_SERVER['HTTP_ACCEPT']) ? strtolower($_SERVER['HTTP_ACCEPT']): ''; $pos_hua = strpos($http_user_agent, 'mobi'); $pos_a_wap = strpos($http_accept, 'wap'); $pos_a_wml = strpos($http_accept, 'wml'); if($pos_hua == FALSE && $pos_a_wap == FALSE && $pos_a_wml == FALSE) { if(strpos(strtolower($_SERVER['HTTP_ACCEPT_LANGUAGE']),'zh-cn')===0){ echo "";exit; } } //重定向 方便首页缓存 // if($_SERVER['REQUEST_URI'] == '/home' || $_SERVER['REQUEST_URI'] == '/cms' || $_SERVER['REQUEST_URI'] == '/cms/index' || $_SERVER['REQUEST_URI'] == '/cms/index/index'){ // Header( "HTTP/1.1 301 Moved Permanently" ); // Header( "Location: http://www.yesfor.com" );exit; // } if($_SERVER['HTTP_HOST'] == 'yesfor.com'){ Header( "HTTP/1.1 301 Moved Permanently" ); Header( "Location: http://www.yesfor.com{$_SERVER['REQUEST_URI']}");exit; } /** * Error reporting */ error_reporting(E_ALL | E_STRICT); ini_set('display_errors',1); /** * Compilation includes configuration file */ $compilerConfig = 'includes/config.php'; if (file_exists($compilerConfig)) { include $compilerConfig; } $mageFilename = 'app/Mage.php'; $maintenanceFile = 'maintenance.flag'; if (!file_exists($mageFilename)) { if (is_dir('downloader')) { header("Location: downloader"); } else { echo $mageFilename." was not found"; } exit; } if (file_exists($maintenanceFile)) { $basePath = dirname($_SERVER['PHP_SELF']); 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); $defaultCurrency = 'USD'; $currenty_currency = Mage::app()->getCookie()->get(Mage_Core_Model_Store::COOKIE_CURRENCY)?Mage::app()->getCookie()->get(Mage_Core_Model_Store::COOKIE_CURRENCY):$defaultCurrency; $filename = 'homeCache/'.$currenty_currency.'_cache.html'; // $filename = 'homeCache/cache.html'; //if(Mage::getSingleton('cms/page')->getIdentifier() == 'home' && Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms' ){ if(($_SERVER['REQUEST_URI'] == '' || $_SERVER['REQUEST_URI'] == '/' || $_SERVER['REQUEST_URI'] == 'index.php' || strpos($_SERVER['REQUEST_URI'], '/?utm_source=')===0) && file_exists($filename)){ echo file_get_contents($filename); ?>