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
="prototype.js"></script
>
11 <script type
="text/javascript" src
="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 bwLimitChange(elem
) {
48 var limit_set
= elem
.checked
;
50 setCookie("ttrss_bwlimit", limit_set
,
51 <?php
print SESSION_COOKIE_LIFETIME ?
>);
54 exception_error("bwLimitChange", e
);
58 function validateLoginForm(f
) {
61 if (f
.login
.value
.length
== 0) {
62 new Effect
.Highlight(f
.login
);
66 if (f
.password
.value
.length
== 0) {
67 new Effect
.Highlight(f
.password
);
71 document
.forms
['loginForm']['click'].disabled
= true;
75 exception_error("validateLoginForm", e
);
81 <script type
="text/javascript">
82 if (document
.addEventListener
) {
83 document
.addEventListener("DOMContentLoaded", init
, null);
88 <form action
="" method
="POST" name
="loginForm" onsubmit
="return validateLoginForm(this)">
89 <input type
="hidden" name
="login_action" value
="do_login">
91 <table width
="100%" class="loginForm2">
93 <td
class="loginTop" valign
="bottom" align
="left">
94 <img src
="images/ttrss_logo_big.png" alt
="Logo">
97 <td align
="center" valign
="middle" class="loginMiddle" height
="100%">
98 <?php
if ($_SESSION['login_error_msg']) { ?
>
99 <div
class="loginError"><?php
echo $_SESSION['login_error_msg'] ?
></div
>
100 <?php
$_SESSION['login_error_msg'] = ""; ?
>
103 <tr
><td align
="right"><?php
echo __("Login:") ?
></td
>
104 <td align
="right"><input name
="login"
105 value
="<?php echo $_SERVER["REMOTE_USER
"] ?>"></td
></tr
>
106 <tr
><td align
="right"><?php
echo __("Password:") ?
></td
>
107 <td align
="right"><input type
="password" name
="password"
108 value
="<?php echo $_SERVER["REMOTE_USER
"] ?>"></td
></tr
>
109 <?php
if (ENABLE_TRANSLATIONS
) { ?
>
110 <tr
><td align
="right"><?php
echo __("Language:") ?
></td
>
113 print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
114 "style='width : 100%' onchange='languageChange(this)'");
119 <!-- <tr
><td colspan
="2">
120 <input type
="checkbox" name
="remember_me" id
="remember_me">
121 <label
for="remember_me">Remember me on this computer
</label
>
124 <tr
><td colspan
="2" align
="right" class="innerLoginCell">
126 <?php
if (defined('_ENABLE_REGISTRATION')) { ?
>
127 <a
class="newAcctPrompt" href
="register.php">Create
new account
</a
>
130 <input type
="submit" class="button" value
="<?php echo __('Log in') ?>" name
='click'>
131 <input type
="hidden" name
="action" value
="login">
132 <input type
="hidden" name
="rt"
133 value
="<?php if ($return_to != 'none') { echo $return_to; } ?>">
136 <tr
><td colspan
="2" align
="right" class="innerLoginCell">
139 <input name
="bw_limit" id
="bw_limit" type
="checkbox"
140 onchange
="bwLimitChange(this)">
141 <label
for="bw_limit">
142 <?php
echo __("Limit bandwidth usage") ?
></label
></div
>
150 <td align
="center" class="loginBottom">
151 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
> ©
; 2005&ndash
;2008 <a href
="http://bah.org.ru/">Andrew Dolgov
</a
>