phpgroupware-cvs
[Top][All Lists]
Advanced

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

[Phpgroupware-cvs] phpgwapi/templates/probusiness navbar.inc.php, 1.1.2.


From: Caeies
Subject: [Phpgroupware-cvs] phpgwapi/templates/probusiness navbar.inc.php, 1.1.2.10
Date: Tue, 4 Oct 2005 09:51:00 +0200

Update of phpgwapi/templates/probusiness

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

Log Message:
Patch #4478 (password Reminder)

====================================================
Index: phpgwapi/templates/probusiness/navbar.inc.php
diff -u phpgwapi/templates/probusiness/navbar.inc.php:1.1.2.9 
phpgwapi/templates/probusiness/navbar.inc.php:1.1.2.10
--- phpgwapi/templates/probusiness/navbar.inc.php:1.1.2.9       Sat Nov  6 
15:34:27 2004
+++ phpgwapi/templates/probusiness/navbar.inc.php       Tue Oct  4 07:51:37 2005
@@ -107,15 +107,27 @@
                                        lang('Current users') . ': ' . 
$GLOBALS['phpgw']->session->total() . '</a>';
                }

+               if 
($GLOBALS['phpgw']->acl->get_rights('changepassword','preferences') > 0)
+               {
                if ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0)
                {
                        $api_messages = lang('You are required to change your 
password during your first login')
-                               . '<br /> Click this image on the navbar: <img 
src="'
-                               . 
$GLOBALS['phpgw']->common->image('preferences','navbar.gif').'">';
+                            . '<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>';
                }
-               elseif ($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < 
time() - (86400*30))
+
+                       if($api_messages)
                {
-                       $api_messages = lang('it has been more then %1 days 
since you changed your password',30);
+                               $url = 
parse_url($GLOBALS['phpgw']->link('/preferences/changepassword.php'));
+                               if($_SERVER['PHP_SELF'] != $url['path'])
+                               {
+                                       $var['messages'] = $api_messages;
+                               }
+                       }
                }

                // This gonna change






reply via email to

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