Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.32 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Magento
  4.  *
  5.  * NOTICE OF LICENSE
  6.  *
  7.  * This source file is subject to the Open Software License (OSL 3.0)
  8.  * that is bundled with this package in the file LICENSE.txt.
  9.  * It is also available through the world-wide-web at this URL:
  10.  * http://opensource.org/licenses/osl-3.0.php
  11.  * If you did not receive a copy of the license and are unable to
  12.  * obtain it through the world-wide-web, please send an email
  13.  * to license@magento.com so we can send you a copy immediately.
  14.  *
  15.  * DISCLAIMER
  16.  *
  17.  * Do not edit or add to this file if you wish to upgrade Magento to newer
  18.  * versions in the future. If you wish to customize Magento for your
  19.  * needs please refer to http://www.magento.com for more information.
  20.  *
  21.  * @category    Mage
  22.  * @package     Mage
  23.  * @copyright  Copyright (c) 2006-2015 X.commerce, Inc. (http://www.magento.com)
  24.  * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
  25.  */
  26.  
  27. if (version_compare(phpversion(), '5.2.0', '<')===true) {
  28.     echo  '<div style="font:12px/1.35em arial, helvetica, sans-serif;"><div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;"><h3 style="margin:0; font-size:1.7em; font-weight:normal; text-transform:none; text-align:left; color:#2f2f2f;">Whoops, it looks like you have an invalid PHP version.</h3></div><p>Magento supports PHP 5.2.0 or newer. <a href="http://www.magentocommerce.com/install" target="">Find out</a> how to install</a> Magento using PHP-CGI as a work-around.</p></div>';
  29.     exit;
  30. }
  31.  
  32. require 'app/bootstrap.php';
  33.  
  34. /**
  35.  * Compilation includes configuration file
  36.  */
  37. $compilerConfig = 'includes/config.php';
  38. if (file_exists($compilerConfig)) {
  39.     include $compilerConfig;
  40. }
  41.  
  42. $mageFilename = 'app/Mage.php';
  43.  
  44. if (!file_exists($mageFilename)) {
  45.     if (is_dir('downloader')) {
  46.         header("Location: downloader");
  47.     } else {
  48.         echo $mageFilename." was not found";
  49.     }
  50.     exit;
  51. }
  52.  
  53. require_once $mageFilename;
  54.  
  55. #Varien_Profiler::enable();
  56.  
  57. if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
  58.     Mage::setIsDeveloperMode(true);
  59. }
  60.  
  61. #ini_set('display_errors', 1);
  62.  
  63. umask(0);
  64.  
  65. $mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
  66. $mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';
  67.  
  68. Mage::run($mageRunCode, $mageRunType);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement