forked from GithubBackups/tinyib
Rename management password field
This commit is contained in:
parent
7389a78941
commit
129e628b9a
@ -269,10 +269,10 @@ function checkMessageSize() {
|
|||||||
function manageCheckLogIn() {
|
function manageCheckLogIn() {
|
||||||
$loggedin = false;
|
$loggedin = false;
|
||||||
$isadmin = false;
|
$isadmin = false;
|
||||||
if (isset($_POST['password'])) {
|
if (isset($_POST['managepassword'])) {
|
||||||
if ($_POST['password'] === TINYIB_ADMINPASS) {
|
if ($_POST['managepassword'] === TINYIB_ADMINPASS) {
|
||||||
$_SESSION['tinyib'] = TINYIB_ADMINPASS;
|
$_SESSION['tinyib'] = TINYIB_ADMINPASS;
|
||||||
} elseif (TINYIB_MODPASS != '' && $_POST['password'] === TINYIB_MODPASS) {
|
} elseif (TINYIB_MODPASS != '' && $_POST['managepassword'] === TINYIB_MODPASS) {
|
||||||
$_SESSION['tinyib'] = TINYIB_MODPASS;
|
$_SESSION['tinyib'] = TINYIB_MODPASS;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -510,7 +510,7 @@ EOF;
|
|||||||
function manageOnLoad($page) {
|
function manageOnLoad($page) {
|
||||||
switch ($page) {
|
switch ($page) {
|
||||||
case 'login':
|
case 'login':
|
||||||
return ' onload="document.tinyib.password.focus();"';
|
return ' onload="document.tinyib.managepassword.focus();"';
|
||||||
case 'moderate':
|
case 'moderate':
|
||||||
return ' onload="document.tinyib.moderate.focus();"';
|
return ' onload="document.tinyib.moderate.focus();"';
|
||||||
case 'rawpost':
|
case 'rawpost':
|
||||||
@ -526,7 +526,7 @@ function manageLogInForm() {
|
|||||||
<fieldset>
|
<fieldset>
|
||||||
<legend align="center">Enter an administrator or moderator password</legend>
|
<legend align="center">Enter an administrator or moderator password</legend>
|
||||||
<div class="login">
|
<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">
|
<input type="submit" value="Log In" class="managebutton">
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user