心理咨询网
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * @copyright (C)2016-2099 Hnaoyun Inc.
  4. * @author XingMeng
  5. * @email hnxsh@foxmail.com
  6. * @date 2016年11月5日
  7. * API入口文件
  8. */
  9. // 定义为入口文件
  10. define('IS_INDEX', true);
  11. // 入口文件地址绑定
  12. define('URL_BIND', 'api');
  13. // PHP版本检测
  14. if (PHP_VERSION < '5.3') {
  15. echo json_encode(array(
  16. 'code' => 0,
  17. 'data' => 'The version of your server PHP is too low, and the program requires PHP version not less than 5.3.'
  18. ));
  19. exit();
  20. }
  21. // 引用内核启动文件
  22. require dirname(__FILE__) . '/core/start.php';