mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 14:23:57 -07:00
r184
git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@184 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293
This commit is contained in:
parent
16d61f1868
commit
6e642d9ba0
2 changed files with 12 additions and 11 deletions
|
@ -108,7 +108,8 @@ if (IS_GUEST || $mod_admin_login)
|
||||||
'ADMIN_LOGIN' => $mod_admin_login,
|
'ADMIN_LOGIN' => $mod_admin_login,
|
||||||
'REDIRECT_URL' => htmlCHR($redirect_url),
|
'REDIRECT_URL' => htmlCHR($redirect_url),
|
||||||
'CAPTCHA_HTML' => ($need_captcha) ? CAPTCHA()->get_html() : '',
|
'CAPTCHA_HTML' => ($need_captcha) ? CAPTCHA()->get_html() : '',
|
||||||
'PAGE_TITLE' => $lang['LOGIN'],
|
'PAGE_TITLE' => $lang['LOGIN'],
|
||||||
|
'S_LOGIN_ACTION' => "login.php",
|
||||||
));
|
));
|
||||||
|
|
||||||
print_page('login.tpl');
|
print_page('login.tpl');
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
<form action="{S_LOGIN_ACTION}" method="post">
|
<form action="{S_LOGIN_ACTION}" method="post">
|
||||||
|
|
||||||
<input type="hidden" name="redirect" value="{REDIRECT_URL}" />
|
<input type="hidden" name="redirect" value="{REDIRECT_URL}" />
|
||||||
<input type="hidden" name="cookie_test" value="{COOKIE_TEST_VAL}" />
|
|
||||||
{S_HIDDEN_FIELDS}
|
|
||||||
<!-- IF ADMIN_LOGIN --><input type="hidden" name="admin" value="1" /><!-- ENDIF -->
|
<!-- IF ADMIN_LOGIN --><input type="hidden" name="admin" value="1" /><!-- ENDIF -->
|
||||||
|
|
||||||
<p class="nav"><a href="{U_INDEX}">{T_INDEX}</a></p>
|
<p class="nav"><a href="{U_INDEX}">{T_INDEX}</a></p>
|
||||||
|
@ -17,19 +15,24 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row1">
|
<td class="row1">
|
||||||
|
|
||||||
<!-- IF ERR_MSG -->
|
<!-- IF LOGIN_ERR_MSG -->
|
||||||
<h4 class="warnColor1 tCenter mrg_16">{ERR_MSG}</h4>
|
<h4 class="warnColor1 tCenter mrg_16">{LOGIN_ERR_MSG}</h4>
|
||||||
|
<!-- ELSEIF ADMIN_LOGIN -->
|
||||||
|
<h4 class="tCenter mrg_16">Для получения доступа к мод/админ опциям необходимо еще раз ввести пароль</h4>
|
||||||
|
<!-- ELSE -->
|
||||||
|
<h4 class="tCenter mrg_16">{L_ENTER_PASSWORD}</h4>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
|
|
||||||
|
|
||||||
<div class="mrg_16">
|
<div class="mrg_16">
|
||||||
<table class="borderless bCenter">
|
<table class="borderless bCenter">
|
||||||
<tr>
|
<tr>
|
||||||
<td width="35%" align="right">{L_USERNAME}:</td>
|
<td width="35%" align="right">{L_USERNAME}:</td>
|
||||||
<td><input type="text" class="post" name="login_username" size="25" maxlength="40" value="{USERNAME}" <!-- IF ADMIN_LOGIN -->readonly="readonly" style="color: gray"<!-- ENDIF --> /></td>
|
<td><input type="text" class="post" name="login_username" size="25" maxlength="40" value="{LOGIN_USERNAME}" tabindex="101"<!-- IF ADMIN_LOGIN --> readonly="readonly" style="color: gray"<!-- ENDIF --> /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right">{L_PASSWORD}:</td>
|
<td align="right">{L_PASSWORD}:</td>
|
||||||
<td><input type="password" class="post" name="login_password" size="25" maxlength="32" /></td>
|
<td><input type="password" class="post" name="login_password" value="{LOGIN_PASSWORD}" tabindex="102" size="25" maxlength="32" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<!-- IF CAPTCHA_HTML -->
|
<!-- IF CAPTCHA_HTML -->
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -38,10 +41,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="tCenter nowrap">{L_AUTO_LOGIN}: <input type="checkbox" name="autologin" <!-- IF ADMIN_LOGIN || AUTOLOGIN_DISABLED -->disabled="disabled"<!-- ELSE -->checked="checked"<!-- ENDIF --> /></td>
|
<td colspan="2" class="tCenter nowrap">{L_AUTO_LOGIN}: <input type="checkbox" name="autologin" tabindex="103"<!-- IF ADMIN_LOGIN || AUTOLOGIN_DISABLED --> disabled="disabled"<!-- ELSE -->checked="checked"<!-- ENDIF --> /></td>
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td colspan="2" class="warnColor1 tCenter" style="<!-- IF COOKIES_ERROR -->font-size: 24px;<!-- ENDIF -->">{L_COOKIES_REQUIRED}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2" class="tCenter pad_6"><input type="submit" name="login" class="bold long" value="{L_LOGIN}" /></td>
|
<td colspan="2" class="tCenter pad_6"><input type="submit" name="login" class="bold long" value="{L_LOGIN}" /></td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue