webcontextmanager implementation 401

This commit is contained in:
Astrologies 2021-12-01 04:30:06 -05:00
parent f4ca2531ae
commit f4a3e6ef53
18 changed files with 19 additions and 19 deletions

View File

@ -6,7 +6,7 @@ use Alphaland\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader())
{
die(http_response_code(400));
die(http_response_code(401));
}
/*

View File

@ -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)

View File

@ -95,4 +95,4 @@ if ($_SERVER['HTTP_USER_AGENT'] == $GLOBALS['clientUserAgent']) //user agent res
}
}
}
die(http_response_code(400));
die(http_response_code(401));

View File

@ -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'];

View File

@ -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) {

View File

@ -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'];

View File

@ -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'];

View File

@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader())
{
die(http_response_code(400));
die(http_response_code(401));
}
/*

View File

@ -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');

View File

@ -15,7 +15,7 @@ $angleLeft = (bool)$_GET['angleLeft'];
if ($angleRight && $angleLeft)
{
die(http_response_code(400));
die(http_response_code(401));
}
else
{

View File

@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader())
{
die(http_response_code(400));
die(http_response_code(401));
}
$userid = $_GET['UserID'];

View File

@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader())
{
die(http_response_code(400));
die(http_response_code(401));
}
$userid = $_GET['UserID'];

View File

@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader())
{
die(http_response_code(400));
die(http_response_code(401));
}
$badgeid = $_GET['BadgeID'];

View File

@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader())
{
die(http_response_code(400));
die(http_response_code(401));
}
$firstuser = $_GET['firstUserId'];

View File

@ -4,7 +4,7 @@ use Alphaland\Web\WebContextManager;
if (!WebContextManager::VerifyAccessKeyHeader())
{
die(http_response_code(400));
die(http_response_code(401));
}
$firstuser = $_GET['firstUserId'];

View File

@ -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"]))

View File

@ -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');

View File

@ -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');