"1","url"=>$url); header("Location: ".$url); } else if($_GET["play"]=="1"){ if($_SESSION["login_uid"]==""){ echo "請登入" ; exit; } $rtn=$pggame->Forward($_SESSION["login_uid"],$_GET["gisubcode"],$redirectURL,$output); if($rtn=="OK") { $historydbobj->addGamePlayHistory($_SESSION["login_uid"],"PG","5"); $url=$redirectURL; $arr = array('success' => "1","url"=>$url); header("Location: ".$url); } else { $logger->error("ws_ajax.php pggamePlay forward fail: ".$output); $arr = array('success' => "0", 'msg' => "遊戲暫時無法進入"); echo "遊戲暫時無法進入" ; } } else{ $arr = array('success' => "0", 'msg' => "不合法存取"); echo "不合法存取" ; } //echo json_encode($arr); //} //else{ // $arr = array('success' => "0", 'msg' => "請登入"); //echo json_encode($arr); // echo "請登入" ; // //} ?>