[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.47 KiB
MD5: c07261ad09be4e717e61358cafd4bf54

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-2007 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 $Id: initsystem.php 15886 2010-04-11 16:52:20Z wilt $
  13.  */
  14. $base_dir = DIR_WS_INCLUDES . 'auto_loaders/';
  15. if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) {
  16.   $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/';
  17. }
  18. /**
  19.  * load the default application_top autoloader file.
  20.  */
  21. include($base_dir . $loader_file);
  22. if ($loader_dir = dir(DIR_WS_INCLUDES . 'auto_loaders')) {
  23.   while ($loader_file = $loader_dir->read()) {
  24.     $matchPattern = '/^' . $loaderPrefix . '\./';
  25.     if ((preg_match($matchPattern, $loader_file) > 0) && (preg_match('/\.php$/', $loader_file) > 0)) {
  26.       if ($loader_file != $loaderPrefix . '.core.php') {
  27.         $base_dir = DIR_WS_INCLUDES . 'auto_loaders/';
  28.         if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) {
  29.           $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/';
  30.         }
  31.         /**
  32.          * load the application_top autoloader files.
  33.          */
  34.         include($base_dir . $loader_file);
  35.       }
  36.     }
  37.   }
  38.   $loader_dir->close();
  39. }
  40. ?>


cron