[Web] Replaced die(); with exit(); due to code conventions

This commit is contained in:
ntimo 2019-10-04 08:40:24 +02:00
parent 0f5c930e48
commit cb9ab928b3
No known key found for this signature in database
GPG Key ID: 3AF3627FB0440D55
3 changed files with 6 additions and 6 deletions

View File

@ -23,12 +23,12 @@ if (isset($_GET['domain'])) {
} }
else { else {
echo "No such domain in context"; echo "No such domain in context";
die(); exit();
} }
} }
else { else {
echo "Invalid domain name"; echo "Invalid domain name";
die(); exit();
} }
} }
@ -422,6 +422,6 @@ foreach ($records as $record) {
<?php <?php
} else { } else {
echo "Session invalid"; echo "Session invalid";
die(); exit();
} }
?> ?>

View File

@ -13,7 +13,7 @@ use OAuth2\ResponseInterface;
* @code * @code
* if (!$resourceController->verifyResourceRequest(OAuth2\Request::createFromGlobals(), $response = new OAuth2\Response())) { * if (!$resourceController->verifyResourceRequest(OAuth2\Request::createFromGlobals(), $response = new OAuth2\Response())) {
* $response->send(); // authorization failed * $response->send(); // authorization failed
* die(); * exit();
* } * }
* return json_encode($resource); // valid token! Send the stuff! * return json_encode($resource); // valid token! Send the stuff!
* @endcode * @endcode

View File

@ -66,7 +66,7 @@ if (!empty($_SERVER['HTTP_X_API_KEY'])) {
'msg' => 'api access denied for ip ' . $_SERVER['REMOTE_ADDR'] 'msg' => 'api access denied for ip ' . $_SERVER['REMOTE_ADDR']
)); ));
unset($_POST); unset($_POST);
die(); exit();
} }
} }
else { else {
@ -78,7 +78,7 @@ if (!empty($_SERVER['HTTP_X_API_KEY'])) {
'msg' => 'authentication failed' 'msg' => 'authentication failed'
)); ));
unset($_POST); unset($_POST);
die(); exit();
} }
} }