Last change
on this file since 568 was 493, checked in by Kris Deugau, 12 years ago |
/trunk
Overhaul session handling; pure URL-based sessions are subject to
copy-paste session-stealing. Convert to cookie-based session tracking
instead. This also provides bonuses in terms of inlinks from other
utilities or copy-paste links.
While session-handling was in pieces, add "pick-up-where-I-left-off"
login handling so that logins don't always end up only on the initial
domain list. This is especially handy for copy-paste links.
Also clean up some of the docucomments, use the CGI::Simple object to
do 302 redirects, and bring the revzone default sort field setup into
line with other thing-lists.
|
File size:
1018 bytes
|
Rev | Line | |
---|
[493] | 1 | <form method="post" action="<TMPL_VAR NAME=script_self>">
|
---|
[38] | 2 | <fieldset>
|
---|
| 3 | <input type="hidden" name="action" value="login" />
|
---|
| 4 | <input type="hidden" name="page" value="login" />
|
---|
[493] | 5 | <input type="hidden" name="target" value="<TMPL_VAR NAME=target>" />
|
---|
[38] | 6 |
|
---|
[210] | 7 | <div id="login">
|
---|
| 8 | <div class="center">DeepNet DNS Administrator v<TMPL_VAR NAME=version></div>
|
---|
| 9 | <br />
|
---|
| 10 | <table id="login2">
|
---|
[125] | 11 | <TMPL_IF loginfailed><tr><td colspan="2" class="errmsg" align="center">Error logging in: Invalid username or password</td></tr></TMPL_IF>
|
---|
| 12 | <TMPL_IF sessexpired><tr><td colspan="2" class="errmsg" align="center">Your session has expired</td></tr></TMPL_IF>
|
---|
[38] | 13 | <tr><td colspan="2" class="title" align="center">Please log in:</td></tr>
|
---|
| 14 | <tr><td class="inputlabel">Username:</td><td><input type="text" name="username" /></td></tr>
|
---|
| 15 | <tr><td class="inputlabel">Password:</td><td><input type="password" name="password" /></td></tr>
|
---|
| 16 | <tr><td colspan="2" class="tblsubmit" align="right"><input type="submit" value="Login" /></td></tr>
|
---|
| 17 | </table>
|
---|
[210] | 18 | </div>
|
---|
[38] | 19 |
|
---|
| 20 | </fieldset>
|
---|
[2] | 21 | </form>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.