index.php 692 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * 商城板块初始化文件
  4. *
  5. *
  6. * * */
  7. define('BASE_PATH',str_replace('\\','/',dirname(__FILE__)));
  8. if (!@include(dirname(dirname(__FILE__)).'/global.php')) exit('global.php isn\'t exists!');
  9. if (!@include(BASE_CORE_PATH.'/lrlz.php')) exit('lrlz.php isn\'t exists!');
  10. define('TPL_NAME',TPL_ADMIN_NAME);
  11. define('ADMIN_TEMPLATES_URL',ADMIN_SITE_URL.'/templates/'.TPL_NAME);
  12. define('BASE_TPL_PATH',BASE_PATH.'/templates/'.TPL_NAME);
  13. if (!@include(BASE_PATH.'/control/control.php')) exit('control.php isn\'t exists!');
  14. $start = microtime(true);
  15. Base::run();
  16. $msg = sprintf("admin request time=%.6f",microtime(true) - $start);
  17. Log::record($msg,Log::DEBUG);
  18. ?>