0 Membros e 2 Visitantes estão a ver este tópico.
// This is just the basic "login" form.function template_login(){ global $context, $settings, $options, $scripturl, $modSettings, $txt; echo ' <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script> <form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" name="frmLogin" id="frmLogin" style="margin-top: 4ex;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '> <table border="0" width="400" cellspacing="0" cellpadding="4" class="tborder" align="center"> <tr class="titlebg"> <td colspan="2"> <img src="', $settings['images_url'], '/icons/login_sm.gif" alt="" align="top" /> ', $txt[34], ' </td>'; // Did they make a mistake last time? if (isset($context['login_error'])) echo ' </tr><tr class="windowbg"> <td align="center" colspan="2" style="padding: 1ex;"> <b style="color: red;">', $context['login_error'], '</b> </td>'; // Or perhaps there's some special description for this time? if (isset($context['description'])) echo ' </tr><tr class="windowbg"> <td align="center" colspan="2"> <b>', $context['description'], '</b><br /> <br /> </td>'; // Now just get the basic information - username, password, etc. echo ' </tr><tr class="windowbg"> <td width="50%" align="right"><b>', $txt[35], ':</b></td> <td><input type="text" name="user" size="20" value="', $context['default_username'], '" /></td> </tr><tr class="windowbg"> <td align="right"><b>', $txt[36], ':</b></td> <td><input type="password" name="passwrd" value="', $context['default_password'], '" size="20" /></td> </tr><tr class="windowbg"> <td align="right"><b>', $txt[497], ':</b></td> <td><input type="text" name="cookielength" size="4" maxlength="4" value="', $modSettings['cookieTime'], '"', $context['never_expire'] ? ' disabled="disabled"' : '', ' /></td> </tr><tr class="windowbg"> <td align="right"><b>', $txt[508], ':</b></td> <td><input type="checkbox" name="cookieneverexp"', $context['never_expire'] ? ' checked="checked"' : '', ' class="check" onclick="this.form.cookielength.disabled = this.checked;" /></td> </tr><tr class="windowbg">'; // If they have deleted their account, give them a chance to change their mind. if (isset($context['login_show_undelete'])) echo ' <td align="right"><b style="color: red;">', $txt['undelete_account'], ':</b></td> <td><input type="checkbox" name="undelete" class="check" /></td> </tr><tr class="windowbg">'; echo ' <td align="center" colspan="2"><input type="submit" value="', $txt[34], '" style="margin-top: 2ex;" /></td> </tr><tr class="windowbg"> <td align="center" colspan="2" class="smalltext"><a href="', $scripturl, '?action=reminder">', $txt[315], '</a><br /><br /></td> </tr> </table> <input type="hidden" name="hash_passwrd" value="" /> </form>'; // Focus on the correct input - username or password. echo ' <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[ document.forms.frmLogin.', isset($context['default_username']) && $context['default_username'] != '' ? 'passwrd' : 'user', '.focus(); // ]]></script>';}
// This is just the basic "login" form.function template_login(){ global $context, $settings, $options, $scripturl, $modSettings, $txt; echo ' <script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/sha1.js"></script><table width="100%"><tr><td valign="top"><img src="', $settings['images_url'], '/fuser.png" style="float:left;" hspace="6" vspace="2" /><b><a href="', $scripturl, '?action=reminder" style="text-decoration:none;"><font size="4" color="#2874D0">Lembrar a Palavra Pass</font></a></b><br />No caso de ter esquecido da sua Password para entrar no forum.<br /><br /><br /><img src="', $settings['images_url'], '/register.png" style="float:left;" hspace="6" vspace="2" /><b><a href="', $scripturl, '?action=register" style="text-decoration:none;"><font size="4" color="#2874D0">Registe-se</font></a></b><br />Se nao for membro deste Forum Aproveita!<br /><br /><br /><img src="', $settings['images_url'], '/login.png" style="float:left;" hspace="6" vspace="2" /><b><font size="4" color="#2874D0">Bem Vindo a Comunidade de Lingua Portuguesa Smf</font></b><br /><ul><li>Método que lhe permite ganhar amigos de forma fácil e segura.</li><li>Registe-se e apresente-se, será bem recebido! Esperamos vê-lo a ganhar muitos pontos e amigos brevemente.</li><li>Poderá encontrar a informação de como começar a aplicar o uso do Smf pode ver em www.smfpt.net.</li></ul><br /><br /><br /></td><td width="30%" valign="top"><form action="', $scripturl, '?action=login2" method="post" accept-charset="', $context['character_set'], '" name="frmLogin" id="frmLogin" style="margin-top: 4ex;"', empty($context['disable_login_hashing']) ? ' onsubmit="hashLoginPassword(this, \'' . $context['session_id'] . '\');"' : '', '><table width="100%" cellpadding="3" cellspacing="5" class="cbor" align="right" style="background-color: #e8eefa"> <tr> <td colspan="2" align="center"> Entrar no forum </td> </tr> <tr> <td colspan="2" align="center"> <img src="', $settings['images_url'], '/login.png" /> </td> </tr> <tr> <td width="25%" align="left"> <b>', $txt[35], '</b> </td> <td align="left"> <input type="text" name="user" size="20" value="', $context['default_username'], '" /> </td> </tr> <tr> <td align="left"> <b>', $txt[36], '</b> </td> <td align="left"> <input type="password" name="passwrd" value="', $context['default_password'], '" size="20" /> </td> </tr> <tr> <td align="right"> <input type="checkbox" name="undelete" class="check" /> </td> <td align="left"> ', $txt['undelete_account'], ' </td> </tr> <tr> <td align="center" colspan="2"> <input type="submit" value="', $txt[34], '" /> </td> </tr></table></form></td></tr></table>'; // Focus on the correct input - username or password. echo ' <script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[ document.forms.frmLogin.', isset($context['default_username']) && $context['default_username'] != '' ? 'passwrd' : 'user', '.focus(); // ]]></script>';}