News:

Wondering if this will always be free?  See why free is better.

Main Menu

2.0.14 Duplicate the input button

Started by Yarik1980, May 27, 2017, 02:04:10 PM

Previous topic - Next topic

Yarik1980

Maintenance mode
The input button is duplicated. In the code marked with arrows. Why do that?
// Display the administrator's message at the top.
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '>
<div class="tborder login" id="maintenance_mode">
<div class="cat_bar">
<h3 class="catbg">', $context['title'], '</h3>
</div>
<p class="description">
<img class="floatleft" src="', $settings['images_url'], '/construction.png" width="40" height="40" alt="', $txt['in_maintain_mode'], '" />
', $context['description'], '<br class="clear" />
</p>
<div class="title_bar">
<h4 class="titlebg">', $txt['admin_login'], '</h4>
</div>
<span class="upperframe"><span></span></span>
<div class="roundframe">
<dl>
<dt>', $txt['username'], ':</dt>
<dd><input type="text" name="user" size="20" class="input_text" /></dd>
<dt>', $txt['password'], ':</dt>
<dd><input type="password" name="passwrd" size="20" class="input_password" /></dd>
<dt>', $txt['mins_logged_in'], ':</dt>
<dd><input type="text" name="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '" class="input_text" /></dd>
<dt>', $txt['always_logged_in'], ':</dt>
<dd><input type="checkbox" name="cookieneverexp" class="input_check" /></dd>
</dl>
==><p class="centertext"><input type="submit" value="', $txt['login'], '" class="button_submit" /></p>
</div>
<span class="lowerframe"><span></span></span>
<input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />==><p class="centertext"><input type="submit" value="', $txt['login'], '" class="button_submit" /><input type="hidden" name="hash_passwrd" value="" />
</div>

Kindred

it's a known issue. the 2.0.14 update missed a closing tag... it will be fixed for 2.0.15 - or you can do a search, the fix has been posted several times
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."


Advertisement: