관리-도구
편집 파일: application_top.php
<?php /** * @copyright Copyright 2003-2022 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: DrByte 2020 Aug 04 Modified in v1.5.8-alpha $ */ if (PHP_VERSION_ID < 70205) { die('Sorry, this version of Zen Cart requires PHP 7.2.5 or greater. <a href="https://www.zen-cart.com/requirements" rel="noopener" target="_blank">Please refer to our website</a> for the PHP versions supported.'); } /** * File contains just application_top code * * Initializes common classes & methods. Controlled by an array which describes * the elements to be initialised and the order in which that happens. * */ require_once('includes/application_bootstrap.php'); /** * Prepare init-system */ use Zencart\InitSystem\InitSystem; use Zencart\FileSystem\FileSystem; $autoLoadConfig = array(); if (isset($loaderPrefix)) { $loaderPrefix = preg_replace('/[^a-z_]/', '', $loaderPrefix); } else { $loaderPrefix = 'config'; } $loader_file = $loaderPrefix . '.core.php'; $initSystem = new InitSystem('admin', $loaderPrefix, new FileSystem, $pluginManager, $installedPlugins); if (defined('DEBUG_AUTOLOAD') && DEBUG_AUTOLOAD == true) $initSystem->setDebug(true); $loaderList = $initSystem->loadAutoLoaders(); $initSystemList = $initSystem->processLoaderList($loaderList); require(DIR_FS_CATALOG . 'includes/autoload_func.php');