[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.01 KiB
MD5: 6035705279ca02f797e5f1f114188871

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-2010 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 $Id: index.php 16770 2010-06-23 17:06:15Z drbyte $
  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.  * Initialize system core components
  19.  */
  20.   require('includes/application_top.php');
  21.  
  22.   /* This is for debug purposes to run installer from command line. Set to true to enable it:  */
  23.   if (false) {
  24.     if ($argc > 0) {
  25.       for ($i=1;$i<$argc;$i++) {
  26.         $it = preg_split("/=/",$argv[$i]);
  27.         $_GET[$it[0]] = $it[1];
  28.         // parse_str($argv[$i],$tmp);
  29.         // $_REQUEST = array_merge($_REQUEST, $tmp);
  30.       }
  31.     }
  32. if (!isset($_GET) && isset($_SERVER["argc"]) && $_SERVER["argc"] > 1) {
  33.   for($i=1;$i<$_SERVER["argc"];$i++) {
  34.     list($key, $val) = explode('=', $_SERVER["argv"][$i]);
  35.     $_GET[$key] = $_REQUEST[$key] = $val;
  36.   }
  37. }
  38.   }
  39.  
  40.   // init vars:
  41.     $zc_first_field = '';
  42.  
  43.   // begin processing page-specific actions
  44.   if (!isset($_GET['main_page']) || !zen_not_null($_GET['main_page'])) $_GET['main_page'] = 'index';
  45.   $current_page = $_GET['main_page'];
  46.   $page_directory = 'includes/modules/pages/' . $current_page;
  47.   $language_page_directory = 'includes/languages/' . $language . '/';
  48.   require($language_page_directory . $current_page . '.php');
  49.   require('includes/languages/' . $language . '.php');
  50.  
  51.   require($page_directory . '/header_php.php');
  52.   require(DIR_WS_INSTALL_TEMPLATE . 'common/html_header.php');
  53.   require(DIR_WS_INSTALL_TEMPLATE . 'common/main_template_vars.php');
  54.   require(DIR_WS_INSTALL_TEMPLATE . 'common/tpl_main_page.php');
  55.  


cron