index.php 797 B

12345678910111213141516171819202122
  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. $start = microtime(true);
  17. Base::run();
  18. $msg = sprintf("admin request time=%.6f\r\n\r\n",microtime(true) - $start);
  19. Log::record($msg,Log::DEBUG);