[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 index.php

Zen Cart 源代码 index.php




下载文件

文件名: index.php
文件类型: PHP文件
文件大小: 2.98 KiB
MD5: 2b4bf5a5780ed2f8725a77f8bcfbe88b

index.php - 关闭高亮
  1. <?php
  2. /**
  3.  * index.php -- This is the main hub file for the Zen Cart installer
  4.  * @package Installer
  5.  * @access private
  6.  * @copyright Copyright 2003-2012 Zen Cart Development Team
  7.  * @copyright Portions Copyright 2003 osCommerce
  8.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  9.  * @version GIT: $Id: Author: DrByte  Thu Oct 4 22:17:16 2012 -0400 Modified in v1.5.2 $
  10.  */
  11.  
  12.   define('IS_ADMIN_FLAG',false);
  13. /*
  14.  * Ensure that the include_path can handle relative paths, before we try to load any files
  15.  */
  16.   if (!strstr(ini_get('include_path'), '.')) ini_set('include_path', '.' . PATH_SEPARATOR . ini_get('include_path'));
  17.  
  18. /**
  19.  * Bypass PHP file caching systems if active, since it interferes with files changed by zc_install
  20.  */
  21. //APC
  22. // if (ini_get('apc.enabled') == 1) {
  23. //   if (@ini_get('apc.enable') == 1) @ini_set('apc.filters', '-configure\.php$');
  24. //   $test1 = realpath(dirname(basename(__FILE__)) . '/../includes/configure.php');
  25. //   $test2 = realpath(dirname(basename(__FILE__)) . '/../admin/includes/configure.php');
  26. //   if (file_exists($test1)) $filesToDecache[] = $test1;
  27. //   if (file_exists($test2)) $filesToDecache[] = $test2;
  28. //   if (sizeof($filesToDecache)) apc_delete_file($filesToDecache);
  29. // }
  30. if (function_exists('apc_clear_cache')) @apc_clear_cache();
  31. //XCACHE
  32. if (function_exists('xcache_clear_cache')) @xcache_clear_cache();
  33. //EA
  34. if (@ini_get('eaccelerator.enable') == 1) {
  35.   @ini_set('eaccelerator.filter', '!*/configure.php');
  36.   $info = eaccelerator_info();
  37.   //if ($info['version'] < '0.9.5.3')
  38.    @ini_set('eaccelerator.enable', 0);
  39. }
  40.  
  41. /*
  42.  * Initialize system core components
  43.  */
  44.   require('includes/application_top.php');
  45.  
  46.   /* This is for debug purposes to run installer from command line. Set to true to enable it:  */
  47.   if (false) {
  48.     if ($argc > 0) {
  49.       for ($i=1;$i<$argc;$i++) {
  50.         $it = preg_split("/=/",$argv[$i]);
  51.         $_GET[$it[0]] = $it[1];
  52.         // parse_str($argv[$i],$tmp);
  53.         // $_REQUEST = array_merge($_REQUEST, $tmp);
  54.       }
  55.     }
  56. if (!isset($_GET) && isset($_SERVER["argc"]) && $_SERVER["argc"] > 1) {
  57.   for($i=1;$i<$_SERVER["argc"];$i++) {
  58.     list($key, $val) = explode('=', $_SERVER["argv"][$i]);
  59.     $_GET[$key] = $_REQUEST[$key] = $val;
  60.   }
  61. }
  62.   }
  63.  
  64.   // init vars:
  65.     $zc_first_field = '';
  66.  
  67.   // begin processing page-specific actions
  68.   if (!isset($_GET['main_page']) || !zen_not_null($_GET['main_page'])) $_GET['main_page'] = 'index';
  69.   $current_page = $_GET['main_page'];
  70.   $page_directory = 'includes/modules/pages/' . $current_page;
  71.   $language_page_directory = 'includes/languages/' . $language . '/';
  72.   require($language_page_directory . $current_page . '.php');
  73.   require('includes/languages/' . $language . '.php');
  74.  
  75.   require($page_directory . '/header_php.php');
  76.   require(DIR_WS_INSTALL_TEMPLATE . 'common/html_header.php');
  77.   require(DIR_WS_INSTALL_TEMPLATE . 'common/main_template_vars.php');
  78.   require(DIR_WS_INSTALL_TEMPLATE . 'common/tpl_main_page.php');
  79.  


cron