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>
9 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
10 <script type="text/javascript" src="lib/prototype.js"></script>
11 <script type="text/javascript" src="lib/scriptaculous/scriptaculous.js"></script>
12 <script type="text/javascript" src="functions.js"></script>
17 <script type="text/javascript">
20 if (arguments.callee.done) return;
21 arguments.callee.done = true;
23 var login = document.forms["loginForm"].login;
25 var limit_set = getCookie("ttrss_bwlimit");
27 if (limit_set == "true") {
28 document.forms["loginForm"].bw_limit.checked = true;
34 function languageChange(elem) {
36 document.forms['loginForm']['click'].disabled = true;
38 var lang = elem[elem.selectedIndex].value;
39 setCookie("ttrss_lang", lang, <?php print SESSION_COOKIE_LIFETIME ?>);
40 window.location.reload();
42 exception_error("languageChange", e);
46 function gotoRegForm() {
47 window.location.href = "register.php";
51 function bwLimitChange(elem) {
53 var limit_set = elem.checked;
55 setCookie("ttrss_bwlimit", limit_set,
56 <?php print SESSION_COOKIE_LIFETIME ?>);
59 exception_error("bwLimitChange", e);
63 function validateLoginForm(f) {
66 if (f.login.value.length == 0) {
67 new Effect.Highlight(f.login);
71 if (f.password.value.length == 0) {
72 new Effect.Highlight(f.password);
76 document.forms['loginForm']['click'].disabled = true;
80 exception_error("validateLoginForm", e);
86 <script type="text/javascript">
87 if (document.addEventListener) {
88 document.addEventListener("DOMContentLoaded", init, null);
93 <form action="" method="POST" name="loginForm" onsubmit="return validateLoginForm(this)">
94 <input type="hidden" name="login_action" value="do_login">
96 <table width="100%" class="loginForm2">
98 <td class="loginTop" valign="bottom" align="left">
99 <img src="images/ttrss_logo_big.png" alt="Logo">
102 <td align="center" valign="middle" class="loginMiddle" height="100%">
103 <?php if ($_SESSION['login_error_msg']) { ?>
104 <div class="loginError"><?php echo $_SESSION['login_error_msg'] ?></div>
105 <?php $_SESSION['login_error_msg'] = ""; ?>
108 <tr><td align="right"><?php echo __("Login:") ?></td>
109 <td align="right"><input name="login"
110 value="<?php echo $_SERVER["REMOTE_USER"] ?>"></td></tr>
111 <tr><td align="right"><?php echo __("Password:") ?></td>
112 <td align="right"><input type="password" name="password"
113 value="<?php echo $_SERVER["REMOTE_USER"] ?>"></td></tr>
114 <?php if (ENABLE_TRANSLATIONS) { ?>
115 <tr><td align="right"><?php echo __("Language:") ?></td>
118 print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
119 "style='width : 100%' onchange='languageChange(this)'");
124 <!-- <tr><td colspan="2">
125 <input type="checkbox" name="remember_me" id="remember_me">
126 <label for="remember_me">Remember me on this computer</label>
129 <tr><td colspan="2" align="right" class="innerLoginCell">
131 <input type="submit" class="button" value="<?php echo __('Log in') ?>" name='click'>
132 <?php if (defined('ENABLE_REGISTRATION') && ENABLE_REGISTRATION) { ?>
133 <input type="submit" class="button" onclick="return gotoRegForm()"
134 value="<?php echo __("Create new account") ?>"/>
137 <input type="hidden" name="action" value="login">
138 <input type="hidden" name="rt"
139 value="<?php if ($return_to != 'none') { echo $return_to; } ?>">
142 <tr><td colspan="2" align="right" class="innerLoginCell">
145 <input name="bw_limit" id="bw_limit" type="checkbox"
146 onchange="bwLimitChange(this)">
147 <label for="bw_limit">
148 <?php echo __("Limit bandwidth usage") ?></label></div>
156 <td align="center" class="loginBottom">
157 <a href="http://tt-rss.org/">Tiny Tiny RSS</a> © 2005–2009 <a href="http://bah.org.ru/">Andrew Dolgov</a>