index.php 832 B

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. //项目所有文件的入口文件
  3. //防跳墙常量
  4. define('IS_INITPHP','http://api.hongzeit.com');
  5. //关错错误输出
  6. error_reporting(0);
  7. //设置页面字符编码
  8. header("Content-type: text/json; charset=utf-8");
  9. //设置时区
  10. date_default_timezone_set('Asia/Shanghai');
  11. //接入方的URL
  12. //header("Access-Control-Allow-Origin:http://guide.clh.com:81");
  13. //$min_seconds_between_refreshes = 1;#设置刷新的时间
  14. //
  15. //session_start();
  16. //
  17. //if(array_key_exists('last_access', $_SESSION) && time()-$min_seconds_between_refreshes <= $_SESSION['last_access'])
  18. //{
  19. // exit('You are refreshing too quickly, please wait a few seconds and try again.');
  20. //}
  21. //// Record now as their last access time
  22. //$_SESSION['last_access'] = time();
  23. //
  24. //核心核心
  25. include './SinglePHP.class.php';
  26. include './config.php';
  27. SinglePHP::getInstance($config)->run();
  28. ?>