![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
|
#1
IP: 153.99.80.189
|
|||
|
|||
|
zen-cart系统中,所有配置包含文件都在application_top.php中,
它在整个zen-cart系统中有着十分重要的地 位,application_top.php主要功能是调用一些常见的zen cart函数和变量. 1:包含 configure.php,里面定义了一些常量. 2:包含了initsystem.php里面自动调用了一些函数 3: 包含了$customers_ip_address = $_SERVER['REMOTE_ADDR']; 4:加载 extra_configures文件夹下的文件 5:$loader_file = $loaderPrefix . '.core.php';主要用语自动加载对应的函数和对象 $base_dir = DIR_WS_INCLUDES . 'auto_loaders/'; if (file_exists(DIR_WS_INCLUDES . 'auto_loaders/overrides/' . $loader_file)) { $base_dir = DIR_WS_INCLUDES . 'auto_loaders/overrides/'; } /** * load the default application_top autoloader file. */ echo $base_dir . $loader_file; //输出的结果为includes/auto_loaders/config.core.php include($base_dir . $loader_file); //主要用于自动加载 |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding a new Product Type in Zen Cart | Illinois City | ZenCart | 0 | 2016-08-16 07:31 AM |
| What are the Server requirements to run Zen Cart? | Mackinac Island | ZenCart | 0 | 2016-07-17 12:33 AM |
| How to Install an Zen Cart Template | topvip | ZenCart | 0 | 2009-08-23 05:35 PM |
| X-Cart Multiple Input Validation Holes Permit SQL Injection and Cross-Site Scripting | topvip | X-Cart | 0 | 2009-07-21 10:03 AM |
| x-cart Template Editing Guide for 4.1.x | topvip | X-Cart | 0 | 2009-04-15 11:42 PM |