mirror of
https://code.rocketnine.space/tslocum/tinyib.git
synced 2025-01-18 03:48:13 +01:00
Rename management password field
This commit is contained in:
parent
7389a78941
commit
129e628b9a
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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() {
|
||||
<fieldset>
|
||||
<legend align="center">Enter an administrator or moderator password</legend>
|
||||
<div class="login">
|
||||
<input type="password" id="password" name="password"><br>
|
||||
<input type="password" id="managepassword" name="managepassword"><br>
|
||||
<input type="submit" value="Log In" class="managebutton">
|
||||
</div>
|
||||
</fieldset>
|
||||
|
Loading…
x
Reference in New Issue
Block a user