3 <title
>Tiny Tiny RSS
: Login
</title
>
4 <link rel
="stylesheet" type
="text/css" href
="lib/dijit/themes/claro/claro.css"/>
5 <link rel
="stylesheet" type
="text/css" href
="tt-rss.css">
6 <link rel
="shortcut icon" type
="image/png" href
="images/favicon.png">
7 <meta http
-equiv
="Content-Type" content
="text/html; charset=utf-8">
8 <script type
="text/javascript" src
="lib/dojo/dojo.js"></script
>
9 <script type
="text/javascript" src
="lib/dijit/dijit.js"></script
>
10 <script type
="text/javascript" src
="lib/dojo/tt-rss-layer.js"></script
>
11 <script type
="text/javascript" src
="lib/prototype.js"></script
>
12 <script type
="text/javascript" src
="js/functions.js"></script
>
13 <script type
="text/javascript" charset
="utf-8" src
="errors.php?mode=js"></script
>
14 <script type
="text/javascript">
15 Event
.observe(window
, 'load', function() {
19 <style type
="text/css">
34 font
-family
: sans
-serif
;
37 border
: 1px solid
#b5bcc7;
44 display
: inline
-block
;
50 border
-width
: 0px
0px
1px
0px
;
52 border
-color
: #88b0f0;
60 border
-width
: 1px
0px
0px
0px
;
62 border
-color
: #88b0f0;
77 padding
: 0px
0px
5px
0px
;
83 padding
: 0px
0px
5px
0px
;
89 <body id
="ttrssLogin" class="claro">
91 <script type
="text/javascript">
93 dojo
.require("dijit.form.Button");
94 dojo
.require("dijit.form.CheckBox");
95 dojo
.require("dijit.form.Form");
96 dojo
.require("dijit.form.Select");
97 dojo
.require("dijit.form.TextBox");
98 dojo
.require("dijit.form.ValidationTextBox");
104 dijit
.byId("bw_limit").attr("checked", getCookie("ttrss_bwlimit") == 'true');
106 document
.forms
.loginForm
.login
.focus();
109 function fetchProfiles() {
111 var query
= "?op=getProfiles&login=" +
param_escape(document
.forms
["loginForm"].login
.value
);
114 new Ajax
.Request("public.php", {
116 onComplete
: function(transport
) {
117 if (transport
.responseText
.match("select")) {
118 $
('profile_box').innerHTML
= transport
.responseText
;
119 dojo
.parser
.parse('profile_box');
125 exception_error("fetchProfiles", e
);
130 function gotoRegForm() {
131 window
.location
.href
= "register.php";
135 function bwLimitChange(elem
) {
137 var limit_set
= elem
.checked
;
139 setCookie("ttrss_bwlimit", limit_set
,
140 <?php
print SESSION_COOKIE_LIFETIME ?
>);
143 exception_error("bwLimitChange", e
);
148 <?php
$return = urlencode($_SERVER["REQUEST_URI"]) ?
>
150 <form action
="public.php?return=<?php echo $return ?>"
151 dojoType
="dijit.form.Form" method
="POST" id
="loginForm" name
="loginForm">
153 <input dojoType
="dijit.form.TextBox" style
="display : none" name
="op" value
="login">
156 <img src
="images/logo_wide.png">
162 <?php
if ($_SESSION["login_error_msg"]) { ?
>
163 <div
class="row-error">
164 <?php
echo $_SESSION["login_error_msg"] ?
>
166 <?php
$_SESSION["login_error_msg"] = ""; ?
>
169 <label
><?php
echo __("Login:") ?
></label
>
170 <input name
="login" class="input"
171 onchange
="fetchProfiles()" onfocus
="fetchProfiles()" onblur
="fetchProfiles()"
172 style
="width : 220px"
174 value
="<?php echo $_SESSION["fake_login
"] ?>" />
178 <label
><?php
echo __("Password:") ?
></label
>
179 <input type
="password" name
="password" required
="1"
180 style
="width : 220px" class="input"
181 value
="<?php echo $_SESSION["fake_password
"] ?>"/>
185 <label
><?php
echo __("Language:") ?
></label
>
187 print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
188 "style='width : 220px; margin : 0px' dojoType='dijit.form.Select'");
193 <label
><?php
echo __("Profile:") ?
></label
>
195 <span id
='profile_box'><select disabled
='disabled' dojoType
='dijit.form.Select'
196 style
='width : 220px; margin : 0px'>
197 <option
><?php
echo __("Default profile") ?
></option
></select
></span
>
202 <label
> 
;</label
>
203 <input dojoType
="dijit.form.CheckBox" name
="bw_limit" id
="bw_limit" type
="checkbox"
204 onchange
="bwLimitChange(this)">
205 <label style
='display : inline' for="bw_limit"><?php
echo __("Use less traffic") ?
></label
>
208 <div
class="row" style
='text-align : right'>
209 <button dojoType
="dijit.form.Button" type
="submit"><?php
echo __('Log in') ?
></button
>
210 <?php
if (defined('ENABLE_REGISTRATION') && ENABLE_REGISTRATION
) { ?
>
211 <button onclick
="return gotoRegForm()" dojoType
="dijit.form.Button">
212 <?php
echo __("Create new account") ?
></button
>
222 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
223 <?php
if (!defined('HIDE_VERSION')) { ?
>
224 v
<?php
echo VERSION ?
>
226 ©
; 2005&ndash
;<?php
echo date('Y') ?
> <a href
="http://fakecake.org/">Andrew Dolgov
</a
>