[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.55 KiB
MD5: 6cf6ec67e28d76529d363a43ad5abf4b

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