]>
Commit | Line | Data |
---|---|---|
01a87dff AD |
1 | <html> |
2 | <head> | |
3 | <title>Tiny Tiny RSS : Login</title> | |
4 | <link rel="stylesheet" type="text/css" href="tt-rss.css"> | |
5 | <link rel="shortcut icon" type="image/png" href="images/favicon.png"> | |
6 | <!--[if gte IE 5.5000]> | |
7 | <script type="text/javascript" src="pngfix.js"></script> | |
8 | <![endif]--> | |
9 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
68659d98 | 10 | <script type="text/javascript" src="functions.js"></script> |
01a87dff AD |
11 | </head> |
12 | ||
13 | <body> | |
14 | ||
15 | <script type="text/javascript"> | |
16 | function init() { | |
17 | ||
18 | if (arguments.callee.done) return; | |
19 | arguments.callee.done = true; | |
20 | ||
21 | var login = document.forms["loginForm"].login; | |
22 | ||
23 | login.focus(); | |
24 | ||
25 | } | |
68659d98 | 26 | function languageChange(elem) { |
1efaefda AD |
27 | try { |
28 | document.forms['loginForm']['click'].disabled = true; | |
29 | ||
30 | var lang = elem[elem.selectedIndex].value; | |
31 | setCookie("ttrss_lang", lang, <?php print SESSION_COOKIE_LIFETIME ?>); | |
32 | window.location.reload(); | |
33 | } catch (e) { | |
34 | exception_error("languageChange", e); | |
35 | } | |
68659d98 | 36 | } |
01a87dff AD |
37 | </script> |
38 | ||
39 | <script type="text/javascript"> | |
40 | if (document.addEventListener) { | |
41 | document.addEventListener("DOMContentLoaded", init, null); | |
42 | } | |
43 | window.onload = init; | |
44 | </script> | |
45 | ||
46 | <form action="" method="POST" name="loginForm"> | |
47 | <input type="hidden" name="login_action" value="do_login"> | |
48 | ||
49 | <table width="100%" class="loginForm2"> | |
50 | <tr> | |
51 | <td class="loginTop" valign="bottom" align="left"> | |
52 | <img src="images/ttrss_logo_big.png" alt="Logo"> | |
53 | </td> | |
54 | </tr><tr> | |
55 | <td align="center" valign="middle" class="loginMiddle" height="100%"> | |
7f0acba7 AD |
56 | <?php if ($_SESSION['login_error_msg']) { ?> |
57 | <div class="loginError"><?php echo $_SESSION['login_error_msg'] ?></div> | |
58 | <?php $_SESSION['login_error_msg'] = ""; ?> | |
01a87dff AD |
59 | <?php } ?> |
60 | <table> | |
4dccf1ed | 61 | <tr><td align="right"><?php echo __("Login:") ?></td> |
01a87dff | 62 | <td align="right"><input name="login"></td></tr> |
4dccf1ed | 63 | <tr><td align="right"><?php echo __("Password:") ?></td> |
01a87dff | 64 | <td align="right"><input type="password" name="password"></td></tr> |
f8c612d4 AD |
65 | <tr><td align="right"><?php echo __("Language:") ?></td> |
66 | <td align="right"> | |
67 | <?php | |
68659d98 AD |
68 | print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(), |
69 | "style='width : 100%' onchange='languageChange(this)'"); | |
f8c612d4 AD |
70 | |
71 | ?> | |
72 | </td></tr> | |
1df0f48b | 73 | <!-- <tr><td colspan="2"> |
01a87dff AD |
74 | <input type="checkbox" name="remember_me" id="remember_me"> |
75 | <label for="remember_me">Remember me on this computer</label> | |
1df0f48b | 76 | </td></tr> --> |
01a87dff | 77 | <tr><td colspan="2" align="right" class="innerLoginCell"> |
1efaefda | 78 | <input type="submit" class="button" value="Login" name='click'> |
01a87dff AD |
79 | <input type="hidden" name="action" value="login"> |
80 | <input type="hidden" name="rt" | |
81 | value="<?php if ($return_to != 'none') { echo $return_to; } ?>"> | |
82 | </td></tr> | |
83 | </table> | |
84 | </td> | |
85 | </tr><tr> | |
86 | <td align="center" class="loginBottom"> | |
87 | <a href="http://tt-rss.spb.ru/">Tiny Tiny RSS</a> © 2005-2007 <a href="http://bah.org.ru/">Andrew Dolgov</a> | |
88 | </td> | |
89 | </tr> | |
90 | ||
91 | </table> | |
92 | ||
93 | </form> | |
94 |