webcontextmanager implementation 401
This commit is contained in:
parent
f4ca2531ae
commit
f4a3e6ef53
|
|
@ -6,7 +6,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$action = (string)$_GET['action'];
|
||||
|
|
@ -17,7 +17,7 @@ $isteleport = (bool)$_GET['IsTeleport'];
|
|||
|
||||
function BadRequest()
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
if (!$action || !$userid || !$placeid)
|
||||
|
|
|
|||
|
|
@ -95,4 +95,4 @@ if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent res
|
|||
}
|
||||
}
|
||||
}
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
|
|
@ -3,7 +3,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$jobID = (string)$_GET['jobid'];
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ function constructJson($jobid, $status, $joinscripturl, $authenticationurl, $aut
|
|||
|
||||
if(!$requesttype || !$placeid || ($_SERVER['HTTP_USER_AGENT'] != $GLOBALS['clientUserAgent']))
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
function genToken($jobid) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$jobid = (string)$_GET['jobId'];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$placeid = (int)$_GET['PlaceID'];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$xml = file_get_contents('php://input');
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ $angleLeft = (bool)$_GET['angleLeft'];
|
|||
|
||||
if ($angleRight && $angleLeft)
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$userid = $_GET['UserID'];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$userid = $_GET['UserID'];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$badgeid = $_GET['BadgeID'];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$firstuser = $_GET['firstUserId'];
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
$firstuser = $_GET['firstUserId'];
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
if(isset($_SERVER["HTTP_CF_CONNECTING_IP"]))
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
|
|||
|
||||
if (!WebContextManager::VerifyAccessKeyHeader())
|
||||
{
|
||||
die(http_response_code(400));
|
||||
die(http_response_code(401));
|
||||
}
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
|
|
|||
Loading…
Reference in New Issue