phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] CVS: phpgroupware login.php,1.77,1.78


From: Dan Kuykendall <address@hidden>
Subject: [Phpgroupware-cvs] CVS: phpgroupware login.php,1.77,1.78
Date: Mon, 27 May 2002 04:21:15 -0400

Update of /cvsroot/phpgroupware/phpgroupware
In directory subversions:/tmp/cvs-serv15155

Modified Files:
        login.php 
Log Message:
updated wit new msgbox

Index: login.php
===================================================================
RCS file: /cvsroot/phpgroupware/phpgroupware/login.php,v
retrieving revision 1.77
retrieving revision 1.78
diff -C2 -r1.77 -r1.78
*** login.php   17 Feb 2002 08:07:38 -0000      1.77
--- login.php   27 May 2002 08:21:13 -0000      1.78
***************
*** 84,87 ****
--- 84,88 ----
        {
                global $code, $last_loginid, $login;
+ //echo '$GLOBALS: <pre>';print_r($GLOBALS);echo '</pre>';
                /* This needs to be this way, because if someone doesnt want to 
use cookies, we shouldnt sneak one in */
                if ($code != 5 && 
(isset($GLOBALS['phpgw_info']['server']['usecookies']) && 
$GLOBALS['phpgw_info']['server']['usecookies']))
***************
*** 93,106 ****
        function check_logoutcode($code)
        {
                switch($code)
                {
                        case 1:
!                               return lang('You have been successfully logged 
out');
                                break;
                        case 2:
!                               return lang('Sorry, your login has expired');
                                break;
                        case 5:
!                               return '<font color="FF0000">' . lang('Bad 
login or password') . '</font>';
                                break;
                        case 10:
--- 94,109 ----
        function check_logoutcode($code)
        {
+               $GLOBALS['phpgw']->template = CreateObject('phpgwapi.Template');
+               $GLOBALS['phpgw']->common = CreateObject('phpgwapi.common');
                switch($code)
                {
                        case 1:
!                               return $GLOBALS['phpgw']->common->msgbox('You 
have been successfully logged out', True);
                                break;
                        case 2:
!                               return 
$GLOBALS['phpgw']->common->msgbox('Sorry, your login has expired', False);
                                break;
                        case 5:
!                               return $GLOBALS['phpgw']->common->msgbox('Bad 
login or password', False);
                                break;
                        case 10:
***************
*** 108,112 ****
                                Setcookie('kp3');
                                Setcookie('domain');
!                               return '<font color=FF0000>' . lang('Your 
session could not be verified.') . '</font>';
                                break;
                        default:
--- 111,115 ----
                                Setcookie('kp3');
                                Setcookie('domain');
!                               return $GLOBALS['phpgw']->common->msgbox('Your 
session could not be verified.',False);
                                break;
                        default:




reply via email to

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