网络营销电子商务研究中心  
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.36.123
Old 2016-05-14, 05:19 PM
Ida Ida is offline
初级会员
 
Join Date: 2011-09-29
Posts: 3
Ida 现在声名狼藉
Default zen-cart 初始化文件application_top.php解析(待完善)

application_top.php为web应用初始化文件,其完成的工作主要有:

1.预防黑客攻击。inoculate against hack attempts which waste CPU cycles
2.预定义常量。
(1)IS_ADMIN_FLAG:false;
(2)PAGE_PARSE_START_TIME:microtime();
3.调用includes/local/configure.php(本地配置文件),如果存在的话。
4.预定义常量。
DEBUG_AUTOLOAD:false;
5.设置错误报告级别。set the level of error reporting
6.关闭魔法引号功能。turn off magic-quotes support
7.调用includes/configure.php(应用配置文件)。
8.调用位于includes/extra_configures/xxx.php额外配置文件清单。
9.调用includes/initsystem.php,将初始化‘includes/auto_loaders/’目录下的包括config.core.php在内的所有配置文件,在这些配置文件中利用'控制数组'$autoLoadConfig[]完成语义动作。
10.判断安装状态。
11.调用includes/autoload_func.php(自动加载器定义/解析文件),主要完成控制数组$autoLoadConfig[]的语义解析。
控制类型‘autoType’主要包括:
(1)include: 载入一个指定文件,用法如下:$autoLoadConfig[][]=array('autoType' => 'include', 'loadFile' => DIR_WS_INCLUDES.'xxx.php');
(2)require: 方法同上;
(3)init_script: 载入'includes/init_includes/'目录下所有初始化脚本文件,用法如下:$autoLoadConfig[][]=array('autoType' => 'init_script', 'loadFile' => 'init_xxx.php');
(4)class: 加载类定义文件,用法如下:$autoLoadConfig[][]=array('autoType' => 'class', 'loadFile' => 'shopping_cart.php');
(5)classInstantiate: 实例化指定类,用法如下:$autoLoadConfig[][]=array('autoType' => 'classInstantiate', 'className'=>'shoppingCart', 'objectName'=>'cart');
(6)objectMethod: 调用制定类对象的制定方法,用法如下:$autoLoadConfig[][]=array('autoType' => 'objectMethod', 'objectName'=>'cart','methodName'=>'add_goods');
12.根据条件$spider_flag,调用'includes/counter.php'文件,功能如下。
(1)用于记录用户session变量个数$session_counter。
(2)更新 TABLE_COUNTER_HISTORY:记录每天session量和用户量
(3)更新TABLE_COUNTER:记录网站总访问量。
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
How to Modify Zen Cart to Use External Images 上海公司注册 ZenCart 0 2012-06-21 11:56 AM
有关Zen Cart的一些常用操作 yahoo ZenCart 0 2009-12-01 09:36 PM
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 11:07 AM.


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