3 <title
>Tiny Tiny RSS
: Login
</title
>
4 <link rel
="stylesheet" type
="text/css" href
="mobile.css">
5 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
6 <script type
="text/javascript" charset
="utf-8" src
="mobile.js"></script
>
9 <script type
="text/javascript">
12 if (arguments
.callee
.done
) return;
13 arguments
.callee
.done
= true;
15 var login
= document
.forms
["loginForm"].login
;
16 var click
= document
.forms
["loginForm"].click
;
19 click
.disabled
= false;
22 function languageChange(elem
) {
24 document
.forms
['loginForm']['click'].disabled
= true;
26 var lang
= elem
[elem
.selectedIndex
].value
;
27 setCookie("ttrss_lang", lang
, <?php
print SESSION_COOKIE_LIFETIME ?
>);
28 window
.location
.reload();
30 exception_error("languageChange", e
);
36 <script type
="text/javascript">
37 if (document
.addEventListener
) {
38 document
.addEventListener("DOMContentLoaded", init
, null);
47 <div id
="heading">Tiny Tiny RSS
</div
>
49 <form action
="index.php" method
="POST" name
="loginForm">
50 <input type
="hidden" name
="rt" value
="<?php echo $_GET['rt'] ?>">
51 <input type
="hidden" name
="login_action" value
="do_login">
53 <?php
if ($_SESSION['login_error_msg']) { ?
>
54 <div
class="loginError"><?php
echo $_SESSION['login_error_msg'] ?
></div
>
55 <?php
$_SESSION['login_error_msg'] = ""; ?
>
59 <tr
><td align
='right'><?php
echo __("Login:") ?
></td
><td
><input type
="text" name
="login"></td
>
60 <tr
><td align
='right'><?php
echo __("Password:") ?
></td
><td
><input type
="password" name
="password"></tr
>
62 <tr
><td align
="right"><?php
echo __("Language:") ?
></td
>
65 print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
66 "style='width : 100%' onchange='languageChange(this)'");
71 <input type
="submit" class="button" value
="<?php echo __('Log in') ?>" name
="click">