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">
36 display
: inline
-block
;
42 border
-width
: 0px
0px
1px
0px
;
44 border
-color
: #88b0f0;
52 border
-width
: 1px
0px
0px
0px
;
54 border
-color
: #88b0f0;
69 padding
: 0px
0px
5px
0px
;
75 padding
: 0px
0px
5px
0px
;
81 <body id
="ttrssLogin" class="claro">
83 <script type
="text/javascript">
85 dojo
.require("dijit.form.Button");
86 dojo
.require("dijit.form.CheckBox");
87 dojo
.require("dijit.form.Form");
88 dojo
.require("dijit.form.Select");
89 dojo
.require("dijit.form.TextBox");
90 dojo
.require("dijit.form.ValidationTextBox");
96 dijit
.byId("bw_limit").attr("checked", getCookie("ttrss_bwlimit") == 'true');
99 function fetchProfiles() {
101 var query
= "?op=getProfiles&login=" +
param_escape(document
.forms
["loginForm"].login
.value
);
104 new Ajax
.Request("public.php", {
106 onComplete
: function(transport
) {
107 if (transport
.responseText
.match("select")) {
108 $
('profile_box').innerHTML
= transport
.responseText
;
109 dojo
.parser
.parse('profile_box');
115 exception_error("fetchProfiles", e
);
120 function gotoRegForm() {
121 window
.location
.href
= "register.php";
125 function bwLimitChange(elem
) {
127 var limit_set
= elem
.checked
;
129 setCookie("ttrss_bwlimit", limit_set
,
130 <?php
print SESSION_COOKIE_LIFETIME ?
>);
133 exception_error("bwLimitChange", e
);
138 <?php
$return = urlencode($_SERVER["REQUEST_URI"]) ?
>
140 <form action
="public.php?return=<?php echo $return ?>"
141 dojoType
="dijit.form.Form" method
="POST" id
="loginForm" name
="loginForm">
143 <input dojoType
="dijit.form.TextBox" style
="display : none" name
="op" value
="login">
146 <img src
="images/logo_wide.png">
152 <?php
if ($_SESSION["login_error_msg"]) { ?
>
153 <div
class="row-error">
154 <?php
echo $_SESSION["login_error_msg"] ?
>
156 <?php
$_SESSION["login_error_msg"] = ""; ?
>
159 <label
><?php
echo __("Login:") ?
></label
>
161 onchange
="fetchProfiles()" onfocus
="fetchProfiles()" onblur
="fetchProfiles()"
162 style
="width : 220px"
163 dojoType
="dijit.form.TextBox" required
="1"
164 value
="<?php echo $_SESSION["fake_login
"] ?>" />
168 <label
><?php
echo __("Password:") ?
></label
>
169 <input type
="password" name
="password" dojoType
="dijit.form.TextBox" required
="1"
170 style
="width : 220px"
171 value
="<?php echo $_SESSION["fake_password
"] ?>"/>
175 <label
><?php
echo __("Language:") ?
></label
>
177 print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
178 "style='width : 220px; margin : 0px' dojoType='dijit.form.Select'");
183 <label
><?php
echo __("Profile:") ?
></label
>
185 <span id
='profile_box'><select disabled
='disabled' dojoType
='dijit.form.Select'
186 style
='width : 220px; margin : 0px'>
187 <option
><?php
echo __("Default profile") ?
></option
></select
></span
>
192 <label
> 
;</label
>
193 <input dojoType
="dijit.form.CheckBox" name
="bw_limit" id
="bw_limit" type
="checkbox"
194 onchange
="bwLimitChange(this)">
195 <label style
='display : inline' for="bw_limit"><?php
echo __("Use less traffic") ?
></label
>
198 <div
class="row" style
='text-align : right'>
199 <button dojoType
="dijit.form.Button" type
="submit"><?php
echo __('Log in') ?
></button
>
200 <?php
if (defined('ENABLE_REGISTRATION') && ENABLE_REGISTRATION
) { ?
>
201 <button onclick
="return gotoRegForm()" dojoType
="dijit.form.Button">
202 <?php
echo __("Create new account") ?
></button
>
212 <a href
="http://tt-rss.org/">Tiny Tiny RSS
</a
>
213 <?php
if (!defined('HIDE_VERSION')) { ?
>
214 v
<?php
echo VERSION ?
>
216 ©
; 2005&ndash
;<?php
echo date('Y') ?
> <a href
="http://fakecake.org/">Andrew Dolgov
</a
>