1
0
mirror of https://github.com/binary-kitchen/doorlockd synced 2024-12-22 10:24:26 +01:00

Removed unneeded function

This commit is contained in:
Ralf Ramsauer 2015-09-24 18:04:38 +02:00
parent 2234c58371
commit 4cdf16347e

View File

@ -31,47 +31,6 @@
return $result; return $result;
} }
function err2str( $code ) {
switch ( $code ) {
case 0:
return "Success";
break;
case 1:
return "Fail";
break;
case 2:
return "Already Unlocked"; // Authentication successful, but door is already unlocked
break;
case 3:
return "Already Locked"; // Authentication successful, but door is already locked
break;
case 4:
return "NotJson"; // Request is not a valid JSON object
break;
case 5:
return "Json Error"; // Request is valid JSON, but does not contain necessary material
break;
case 6:
return "Invalid Token"; // Request contains invalid token
break;
case 7:
return "Invalid Credentials"; // Invalid LDAP credentials
break;
case 8:
return "Invalid IP";
break;
case 9:
return "Unknown Command"; // Unknown command
break;
case 10:
return "LDAP Init error"; // Ldap initialization failed
break;
default:
return "Unknown error";
break;
}
}
$showLoginForm = false; $showLoginForm = false;
$showSuccess = false; $showSuccess = false;
$showFailure = false; $showFailure = false;