网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > ZenCart
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 153.99.80.189
Old 2016-08-17, 04:38 PM
Maiden Rock Maiden Rock is offline
初级会员
 
Join Date: 2006-03-27
Posts: 1
Maiden Rock 现在声名狼藉
Default zen-cart application_top.php分析

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); //主要用于自动加载
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 10:56 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.