index.php 955 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * 商城板块初始化文件
  5. *
  6. *
  7. * * */
  8. define('APP_ID','shop');
  9. define('BASE_ROOT_PATH',str_replace('/shop','',dirname(__FILE__)));
  10. define('BASE_PATH', BASE_ROOT_PATH . '/shop');
  11. $start = microtime(true);
  12. if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
  13. if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
  14. if (!@include(BASE_CORE_PATH.'/lrlz.php')) exit('lrlz.php isn\'t exists!');
  15. define('APP_SITE_URL',SHOP_SITE_URL);
  16. define('TPL_NAME',TPL_SHOP_NAME);
  17. define('SHOP_RESOURCE_SITE_URL',SHOP_SITE_URL.DS.'resource');
  18. define('SHOP_TEMPLATES_URL',SHOP_SITE_URL.'/templates/'.TPL_NAME);
  19. define('BASE_TPL_PATH',BASE_PATH.'/templates/'.TPL_NAME);
  20. include(BASE_CONFIG_PATH . CONFIG_PREFIX . '/refill.ini.php');
  21. Base::run();
  22. $time = microtime(true) - $start;
  23. Log::record("use time = {$time}",Log::DEBUG);