]> git.wh0rd.org Git - tt-rss.git/commitdiff
rework login screen
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 19 Aug 2006 06:42:53 +0000 (07:42 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 19 Aug 2006 06:42:53 +0000 (07:42 +0100)
images/ttrss_logo_big.png
login.php
tt-rss.css

index 013f95791a9ddb5ae5916df348b9d4ff2aeddc9a..b2c59d176bb44248857a27a8c5d1c6ee620786ed 100644 (file)
Binary files a/images/ttrss_logo_big.png and b/images/ttrss_logo_big.png differ
index 577e5466bf05a95b76f7479557c2edc2b39cc0a1..60e0cb1eaa4c3a4f8f19ee87cd0223109950a21e 100644 (file)
--- a/login.php
+++ b/login.php
@@ -6,6 +6,8 @@
        require_once "config.php";
        require_once "functions.php";
 
+       $error_msg = "";
+
        $url_path = get_script_urlpath();
 
        if (ENABLE_LOGIN_SSL) {         
                        }
                        header("Location: $redirect_base/$return_to");
                        exit;
+               } else {
+                       $error_msg = "Error: Unable to authenticate user. Please check login and password.";
                }
+       } else {
+               $error_msg = "Error: Either login or password is blank.";
        }
 
 ?>
@@ -97,38 +103,46 @@ if (document.addEventListener) {
 window.onload = init;
 </script>
 
-<table width='100%' height='100%' class="loginForm">
-
-       <tr><td align='center' valign='middle'>
-
-       <form action="login.php" method="POST" name="loginForm">
-       
-       <table class="innerLoginForm">
-
-       <tr><td valign="middle" align="center" colspan="2">
-               <img src="images/ttrss_logo.png" alt="logo">
-       </td></tr>
-       
-       <tr><td align="right">Login:</td>
-               <td><input name="login"></td></tr>
-       <tr><td align="right">Password:</td>
-               <td><input type="password" name="password"></td></tr>
-       <tr><td>&nbsp;</td><td>
-                       <input type="checkbox" name="remember_me" id="remember_me">
-                       <label for="remember_me">Remember me</label>
-       </td></tr>
-       <tr><td colspan="2" align="center">
-               <input type="submit" class="button" value="Login">
-               <input type="hidden" name="rt" value="<?= $_GET['rt'] ?>">
-       </td></tr>
-       
-       </table>
-       
-       </form>
-
-       </td></tr>
+<form action="login.php" method="POST" name="loginForm">
+
+<table width="100%" class="loginForm2">
+<tr>
+       <td class="loginTop" valign="bottom" align="left">
+               <img src="images/ttrss_logo_big.png" alt="Logo">
+       </td>
+</tr><tr>
+       <td align="center" valign="middle" class="loginMiddle" height="100%">
+               <? if ($error_msg) { ?>
+                       <div class="loginError"><?= $error_msg ?></div>
+               <? } ?>
+               <table>
+                       <tr><td align="right">Login:</td>
+                       <td><input name="login"></td></tr>
+                       <tr><td align="right">Password:</td>
+                       <td><input type="password" name="password"></td></tr>
+                       <tr><td colspan="2">
+                               <input type="checkbox" name="remember_me" id="remember_me">
+                               <label for="remember_me">Remember me on this computer</label>
+                       </td></tr>
+                       <tr><td colspan="2" align="right">
+                               <input type="submit" class="button" value="Login">
+                       <input type="hidden" name="rt" value="<?= $_GET['rt'] ?>">
+                       </td></tr>
+               </table>
+       </td>
+</tr><tr>
+       <td align="center" class="loginBottom">
+               <a href="http://tt-rss.spb.ru/">Tiny-Tiny RSS</a> v<?= VERSION ?> &copy; 2005-2006 Andrew Dolgov
+               <? if (WEB_DEMO_MODE) { ?>
+               <br>Running in demo mode, some functionality is disabled.
+               <? } ?>
+       </td>
+</tr>
+
 </table>
 
+</form>
+
 <? db_close($link); ?>
 
 <script type="text/javascript">
index f8f155b734112089f8c93192e83a359fe4d26058..a96f7b575631f62532a677d9cdfdd6c01c3233d3 100644 (file)
@@ -1171,3 +1171,37 @@ span.debugTS {
        padding : 3px;
        font-weight : bold;
 }
+
+table.loginForm2 {
+       padding : 1em;
+}
+
+table.loginForm2 .loginTop {
+       border-width : 0px 0px 1px 0px;
+       border-color : #88b0f0;
+       border-style : solid;
+       padding : 0.5em;
+}
+
+table.loginForm2 .loginMiddle {
+       padding : 3em;
+}
+
+table.loginForm2 .loginBottom {
+       border-width : 1px 0px 0px 0px;
+       border-color : #88b0f0;
+       border-style : solid;
+       font-size : x-small;
+       text-align : center;
+       color : #909090;
+       padding : 0.5em;
+}
+
+table.loginForm2 .loginBottom a {
+       color : #909090;
+}
+
+.loginError {
+       color : red;
+       margin : 0.5em;
+}