From 4cdf16347e99c3889391099f510163fbb445de27 Mon Sep 17 00:00:00 2001 From: Ralf Ramsauer Date: Thu, 24 Sep 2015 18:04:38 +0200 Subject: [PATCH] Removed unneeded function --- webfrontend/index.php | 41 ----------------------------------------- 1 file changed, 41 deletions(-) diff --git a/webfrontend/index.php b/webfrontend/index.php index 4aa85e7..abbc2c2 100644 --- a/webfrontend/index.php +++ b/webfrontend/index.php @@ -31,47 +31,6 @@ 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; $showSuccess = false; $showFailure = false;