index.php 861 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * 商城板块初始化文件
  4. *
  5. *
  6. * * */
  7. define('APP_ID','admin');
  8. define('BASE_ROOT_PATH',str_replace('/admin','',dirname(__FILE__)));
  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. define('TPL_NAME',TPL_ADMIN_NAME);
  13. define('ADMIN_TEMPLATES_URL',ADMIN_SITE_URL.'/templates/'.TPL_NAME);
  14. define('BASE_TPL_PATH',BASE_PATH.'/templates/'.TPL_NAME);
  15. if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
  16. include(BASE_CONFIG_PATH . CONFIG_PREFIX . '/refill.ini.php');
  17. $start = microtime(true);
  18. Base::run();
  19. $msg = sprintf("admin request time=%.6f\r\n\r\n",microtime(true) - $start);
  20. Log::record($msg,Log::DEBUG);