[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 源代码 initsystem.php

Zen Cart 源代码 initsystem.php




下载文件

文件名: initsystem.php
文件类型: PHP文件
文件大小: 1.48 KiB
MD5: 8939058d5b143566134b4138a1c48ab8

initsystem.php - 关闭高亮
  1. <?php
  2. /**
  3.  * initsystem.php
  4.  *
  5.  * loads and interprets the autoloader files
  6.  *
  7.  * @package initSystem
  8.  * @copyright Copyright 2003-2012 Zen Cart Development Team
  9.  * @copyright Portions Copyright 2003 osCommerce
  10.  * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  11.  * @version GIT: $Id: Author: DrByte  Fri Jul 6 11:57:44 2012 -0400 Modified in v1.5.1 $
  12.  */
  13. if (!defined('IS_ADMIN_FLAG')) {
  14.   die('Illegal Access');
  15. }
  16.  
  17. $base_dir = DIR_WS_INCLUDES . 'auto_loaders/';
  18. if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) {
  19.   $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/';
  20. }
  21. /**
  22.  * load the default application_top autoloader file.
  23.  */
  24. if (file_exists($base_dir . $loader_file)) include($base_dir . $loader_file);
  25. if ($loader_dir = dir(DIR_WS_INCLUDES . 'auto_loaders')) {
  26.   while ($loader_file = $loader_dir->read()) {
  27.     $matchPattern = '/^' . $loaderPrefix . '\./';
  28.     if ((preg_match($matchPattern, $loader_file) > 0) && (preg_match('~^[^\._].*\.php$~i', $loader_file) > 0)) {
  29.       if ($loader_file != $loaderPrefix . '.core.php') {
  30.         $base_dir = DIR_WS_INCLUDES . 'auto_loaders/';
  31.         if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) {
  32.           $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/';
  33.         }
  34.         /**
  35.          * load the application_top autoloader files.
  36.          */
  37.         include($base_dir . $loader_file);
  38.       }
  39.     }
  40.   }
  41.   $loader_dir->close();
  42. }
  43.