index.php 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * 商城板块初始化文件
  4. *
  5. * 商城板块初始化文件,引用框架初始化文件
  6. *
  7. */
  8. define('APP_ID','cms');
  9. define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
  10. if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
  11. if (!@include(BASE_CORE_PATH.'/lrlz.php')) exit('lrlz.php isn\'t exists!');
  12. if (!@include(BASE_PATH.'/config/config.ini.php')){
  13. @header("Location: install/index.php");die;
  14. }
  15. define('APP_SITE_URL',CMS_SITE_URL);
  16. define('TPL_NAME',TPL_CMS_NAME);
  17. define('BASE_TPL_PATH',BASE_PATH.'/templates/'.TPL_NAME);
  18. define('CMS_RESOURCE_SITE_URL',CMS_SITE_URL.'/resource');
  19. define('CMS_TEMPLATES_URL',CMS_SITE_URL.'/templates/'.TPL_NAME);
  20. define('CMS_BASE_TPL_PATH',dirname(__FILE__).'/templates/'.TPL_NAME);
  21. define('CMS_SEO_KEYWORD',$config['seo_keywords']);
  22. define('CMS_SEO_DESCRIPTION',$config['seo_description']);
  23. //cms框架扩展
  24. require(BASE_PATH.'/framework/function/function.php');
  25. if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
  26. Base::run();