Wip command center, collections merge restore
This commit is contained in:
parent
04a9b10904
commit
f9bbc132a6
|
@ -330,10 +330,7 @@ if ($correctLogin) {
|
|||
sleep(15);
|
||||
|
||||
// Protection on DoS attacks.
|
||||
returnError(
|
||||
'auth_error',
|
||||
$returnType
|
||||
);
|
||||
echo 'auth error';
|
||||
}
|
||||
|
||||
// Logout.
|
||||
|
|
|
@ -108,7 +108,6 @@ function returnError($typeError, $returnType='string')
|
|||
{
|
||||
switch ($typeError) {
|
||||
case 'no_set_no_get_no_help':
|
||||
http_response_code(403);
|
||||
returnData(
|
||||
$returnType,
|
||||
[
|
||||
|
@ -119,7 +118,6 @@ function returnError($typeError, $returnType='string')
|
|||
break;
|
||||
|
||||
case 'no_exist_operation':
|
||||
http_response_code(404);
|
||||
returnData(
|
||||
$returnType,
|
||||
[
|
||||
|
@ -130,7 +128,6 @@ function returnError($typeError, $returnType='string')
|
|||
break;
|
||||
|
||||
case 'id_not_found':
|
||||
http_response_code(403);
|
||||
returnData(
|
||||
$returnType,
|
||||
[
|
||||
|
@ -141,7 +138,6 @@ function returnError($typeError, $returnType='string')
|
|||
break;
|
||||
|
||||
case 'not_allowed_operation_cluster':
|
||||
http_response_code(403);
|
||||
returnData(
|
||||
$returnType,
|
||||
[
|
||||
|
@ -152,7 +148,6 @@ function returnError($typeError, $returnType='string')
|
|||
break;
|
||||
|
||||
case 'forbidden':
|
||||
http_response_code(403);
|
||||
returnData(
|
||||
$returnType,
|
||||
[
|
||||
|
@ -173,7 +168,6 @@ function returnError($typeError, $returnType='string')
|
|||
break;
|
||||
|
||||
case 'centralized':
|
||||
http_response_code(403);
|
||||
returnData(
|
||||
$returnType,
|
||||
[
|
||||
|
@ -184,7 +178,6 @@ function returnError($typeError, $returnType='string')
|
|||
break;
|
||||
|
||||
case 'auth_error':
|
||||
http_response_code(403);
|
||||
returnData(
|
||||
$returnType,
|
||||
[
|
||||
|
|
Loading…
Reference in New Issue