index.php 955 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. ?>