index.php 868 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * 设置源静态文件的根目录的URL地址
  4. * */
  5. define('STATIC_URL','http://www.baidu.com/');
  6. /**
  7. * SAE storage的domain
  8. * */
  9. define('DOMAIN','cdn');
  10. /**
  11. * 空请求时是否显示文档
  12. * */
  13. define('WELCOME_DOC',TRUE);
  14. /**
  15. * 运行环境:development/testing/production
  16. * */
  17. define('ENVIRONMENT','development');
  18. //========================================================
  19. if (defined('ENVIRONMENT'))
  20. {
  21. switch (ENVIRONMENT)
  22. {
  23. case 'development':
  24. error_reporting(E_ALL);
  25. break;
  26. case 'testing':
  27. case 'production':
  28. error_reporting(0);
  29. break;
  30. default:
  31. exit('The application environment is not set correctly.');
  32. }
  33. }
  34. //本地根目录
  35. define('BASE_PATH',dirname(__FILE__).'/');
  36. define('BASE_URL', rtrim(STATIC_URL,'/').'/');
  37. define('IS_SAE', defined('SAE_SECRETKEY'));
  38. require_once BASE_PATH.'include/start.php';