phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] sitemgr/modules class.module_login.inc.php, 1.1.2.1.4


From: skwashd
Subject: [Phpgroupware-cvs] sitemgr/modules class.module_login.inc.php, 1.1.2.1.4.2
Date: Sat, 3 Dec 2005 23:06:00 +0100

Update of sitemgr/modules

Modified Files:
     Branch: skwashd-16-compat
            class.module_login.inc.php lines: +17 -15

Log Message:
validation, more css

====================================================
Index: sitemgr/modules/class.module_login.inc.php
diff -u sitemgr/modules/class.module_login.inc.php:1.1.2.1.4.1 
sitemgr/modules/class.module_login.inc.php:1.1.2.1.4.2
--- sitemgr/modules/class.module_login.inc.php:1.1.2.1.4.1      Sun Nov 13 
04:08:17 2005
+++ sitemgr/modules/class.module_login.inc.php  Sat Dec  3 22:06:39 2005
@@ -55,24 +55,26 @@
                        $content = '';
                        if ( $err )
                        {
-                               $content .= "<div style=\"color: #f00; 
text-align: center;\">{$err}</div>\n";
+                               $content .= "<div 
id=\"sitemgr_login_error\">{$err}</div>\n";
                        }

                        $url = $_SERVER['REQUEST_URI'];

-                       $content .= '<form name="login" action="' . $url . '" 
method="POST">';
-                       $content .= '<input type="hidden" name="passwd_type" 
value="text" />';
-                       $content .= '<label for"sitemgr_login_login">' . 
lang('Login Name') ."</label>";
-                       $content .= '<input type="text" name="login" 
value=""><br />' . "\n";
-                       $content .= '<label for="sitemgr_login_passwd">' . 
lang('Password') . "</label>";
-                       $content .= '<input name="passwd" size="8" 
type="password"><br />' . "\n";
-                       $content .= '<button type="submit" name="submitit" 
value="1">' . lang('Login') .'</button">';
-                       $content .= '</div></form>';
+                       $content .= '<div id="sitemgr_login">'
+                               . '     <form name="login" action="' . $url . 
'" method="POST">'
+                               . '             <input type="hidden" 
name="passwd_type" value="text" />'
+                               . '             <label 
for"sitemgr_login_login">' . lang('Login Name') ."</label>"
+                               . '             <input type="text" name="login" 
value=""><br />' . "\n"
+                               . '             <label 
for="sitemgr_login_passwd">' . lang('Password') . "</label>"
+                               . '             <input name="passwd" size="8" 
type="password"><br />' . "\n"
+                               . '             <button type="submit" 
name="submitit" value="1">' . lang('Login') .'</button">'
+                               . '     </form>'
+                               . '</div>';
                        if ($arguments['registration'])
                        {
-                               $content .= '<center><font class="content">' . 
lang("Don't have an account?") .'  ';
-                               $content .= '<a 
href="'.phpgw_link('/registration/index.php').'">';
-                               $content .= lang('Register for one now.') . 
'</a></font></center>';
+                               $content .= '<center><font class="content">' . 
lang("Don't have an account?") . '  '
+                                       . '<a 
href="'.phpgw_link('/registration/index.php').'">'
+                                       . lang('Register for one now.') . 
'</a></font></center>';
                        }
                        return $content;
                }
@@ -88,10 +90,10 @@
                                        return lang('Sorry, your login has 
expired');
                                        break;
                                case 5:
-                                       return '<span style="color: f00;">' . 
lang('Bad login or password') . '</font>';
+                                       return '<span style="color: #f00;">' . 
lang('Bad login or password') . '</span>';
                                        break;
                                case 99:
-                                       return '<span style="color: f00;">' . 
lang('Blocked, too many attempts') . '</font>';
+                                       return '<span style="color: #f00;">' . 
lang('Blocked, too many attempts') . '</span>';
                                        break;
                                case 10:
                                        
$GLOBALS['phpgw']->sessions->phpgw_setcookie('sessionid');
@@ -104,7 +106,7 @@
                                                
$GLOBALS['phpgw']->sessions->phpgw_setcookie(PHPGW_PHPSESSID);
                                        }

-                                       return '<font color=#FF0000>' . 
lang('Your session could not be verified.') . '</font>';
+                                       return '<span style="font-color: 
#f00">' . lang('Your session could not be verified.') . '</span>';
                                        break;
                                default:
                                        return '&nbsp;';






reply via email to

[Prev in Thread] Current Thread [Next in Thread]