phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/templates/idots navbar.inc.php, 1.1.2.18


From: skwashd
Subject: [Phpgroupware-cvs] phpgwapi/templates/idots navbar.inc.php, 1.1.2.18
Date: Thu, 8 Dec 2005 00:08:00 +0100

Update of phpgwapi/templates/idots

Modified Files:
     Branch: Version-0_9_16-branch
            navbar.inc.php lines: +11 -11

Log Message:
fix grammar, cleanup logic, some formatting

====================================================
Index: phpgwapi/templates/idots/navbar.inc.php
diff -u phpgwapi/templates/idots/navbar.inc.php:1.1.2.17 
phpgwapi/templates/idots/navbar.inc.php:1.1.2.18
--- phpgwapi/templates/idots/navbar.inc.php:1.1.2.17    Wed Dec  7 04:14:09 2005
+++ phpgwapi/templates/idots/navbar.inc.php     Wed Dec  7 23:08:55 2005
@@ -101,17 +101,17 @@
                . lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' '
                . 
$GLOBALS['phpgw']->common->show_date($now,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat']);

-               if 
($GLOBALS['phpgw']->acl->get_rights('changepassword','preferences') > 0)
+               if ( $GLOBALS['phpgw']->acl->check('changepassword', 1, 
'preferences') )
                {
-               if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0)
-               {
-                       $api_messages = lang('You are required to change your 
password during your first login')
-                            . '<br /> Click <a href="' . 
$GLOBALS['phpgw']->link('/preferences/changepassword.php') . '">here</a>';
-               }
-               else if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < 
time() - (86400*30))
-               {
-                               $api_messages = lang('it has been more then %1 
days since you changed your password',30)
-                            . '<br /> Click <a href="' . 
$GLOBALS['phpgw']->link('/preferences/changepassword.php') . '">' . 
lang('here') . '</a>';
+                       if ( 
intval($GLOBALS['phpgw_info']['user']['lastpasswd_change']) == 0)
+                       {
+                               $api_messages = lang('You are required to 
change your password during your first login')
+                                       . '<br /> Click <a href="' . 
$GLOBALS['phpgw']->link('/preferences/changepassword.php') . '">here</a>';
+                       }
+                       else if 
($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30))
+                       {
+                               $api_messages = lang('it has been more than %1 
days since you changed your password',30)
+                                       . '<br /> Click <a href="' . 
$GLOBALS['phpgw']->link('/preferences/changepassword.php') . '">' . 
lang('here') . '</a>';
                        }

                        if($api_messages)






reply via email to

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