diff --git a/inc/functions.php b/inc/functions.php index ee5335a..71c9cca 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -269,10 +269,10 @@ function checkMessageSize() { function manageCheckLogIn() { $loggedin = false; $isadmin = false; - if (isset($_POST['password'])) { - if ($_POST['password'] === TINYIB_ADMINPASS) { + if (isset($_POST['managepassword'])) { + if ($_POST['managepassword'] === TINYIB_ADMINPASS) { $_SESSION['tinyib'] = TINYIB_ADMINPASS; - } elseif (TINYIB_MODPASS != '' && $_POST['password'] === TINYIB_MODPASS) { + } elseif (TINYIB_MODPASS != '' && $_POST['managepassword'] === TINYIB_MODPASS) { $_SESSION['tinyib'] = TINYIB_MODPASS; } } diff --git a/inc/html.php b/inc/html.php index 086dc5d..504621c 100644 --- a/inc/html.php +++ b/inc/html.php @@ -510,7 +510,7 @@ EOF; function manageOnLoad($page) { switch ($page) { case 'login': - return ' onload="document.tinyib.password.focus();"'; + return ' onload="document.tinyib.managepassword.focus();"'; case 'moderate': return ' onload="document.tinyib.moderate.focus();"'; case 'rawpost': @@ -526,7 +526,7 @@ function manageLogInForm() {
Enter an administrator or moderator password
-
+