wap.php 495 B

12345678910111213141516
  1. <?php
  2. date_default_timezone_set('PRC');
  3. session_start();
  4. if (isset($_GET['debug'])) {
  5. ini_set('display_errors', 1);
  6. error_reporting(E_ALL);
  7. }
  8. header('content-type:text/html; charset=utf-8');
  9. //header("Access-Control-Allow-Origin:*");
  10. header("Access-Control-Allow-Origin:localdev.boyin168.com");
  11. header('Access-Control-Allow-Methods:POST,GET,PUT');
  12. header('Access-Control-Allow-Credentials:true');
  13. define('ROOT_PATH', dirname(__FILE__));
  14. require ROOT_PATH."/Library/Init";
  15. Run\Init::RunInit();