1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * 商城板块初始化文件
- *
- * 商城板块初始化文件,引用框架初始化文件
- *
-
- */
- define('APP_ID','cms');
- define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
- if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
- if (!@include(BASE_CORE_PATH.'/lrlz.php')) exit('lrlz.php isn\'t exists!');
- if (!@include(BASE_PATH.'/config/config.ini.php')){
- @header("Location: install/index.php");die;
- }
- define('APP_SITE_URL',CMS_SITE_URL);
- define('TPL_NAME',TPL_CMS_NAME);
- define('BASE_TPL_PATH',BASE_PATH.'/templates/'.TPL_NAME);
- define('CMS_RESOURCE_SITE_URL',CMS_SITE_URL.'/resource');
- define('CMS_TEMPLATES_URL',CMS_SITE_URL.'/templates/'.TPL_NAME);
- define('CMS_BASE_TPL_PATH',dirname(__FILE__).'/templates/'.TPL_NAME);
- define('CMS_SEO_KEYWORD',$config['seo_keywords']);
- define('CMS_SEO_DESCRIPTION',$config['seo_description']);
- //cms框架扩展
- require(BASE_PATH.'/framework/function/function.php');
- if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
- Base::run();
|