shopNC 主目录下面的index.php文件
$site_url = strtolower('http://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/index.php')).'/shop/index.php');
@header('Location: '.$site_url);
请求发送到shop目录下的index.php
if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
if (!@include(BASE_CORE_PATH.'/shopnc.php')) exit('shopnc.php isn\'t exists!');
引用global.php control.php shopnc.php三个文件 依次执行
global.php 里面有session_start()、安装判断 和一些基本的路径、变量的define
control.php内包括Control类、BaseHomeControl类(前台control父类)、BaseBuyControl类(购买流程父类)、BaseMemberControl类(会员control父类)、BaseSNSControl类(SNS control父类)、BaseStoreControl类(店铺 control父类)、BaseGoodsControl类(商品 control父类)、BaseSellerControl类(卖家店铺 control新父类)、BaseStoreSnsControl类(店铺SNS control父类)。
shopnc.php 运行框架的define、引用
require_once(BASE_CORE_PATH.'/framework/function/core.php');
require_once(BASE_CORE_PATH.'/framework/core/base.php');
require_once(BASE_CORE_PATH.'/framework/function/goods.php');