true, "user-portal-url" => $rfc8910_url, "venue-info-url" => $rfc8910_url ); echo json_encode($json_post, JSON_PRETTY_PRINT); } else { captiveportal_logportalauth("rfc8910", "EXISTING SESSION", $clientip, $cpzone); /* $seconds_remaining = (time()-$cpsession['allow_time'])+($cpcfg['timeout']*60); */ $json_post = array ( "captive" => false, "user-portal-url" => $rfc8910_url, "venue-info-url" => $rfc8910_url ); echo json_encode($json_post, JSON_PRETTY_PRINT); } ob_flush(); return; ?>