Changeset 72 for trunk/phpgwapi/templates
- Timestamp:
- 09/24/07 10:22:29 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/templates/celepar/navbar.inc.php
r25 r72 13 13 function parse_navbar($force = False) 14 14 { 15 16 15 $GLOBALS['celepar_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); 17 16 … … 221 220 . lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</a>'; 222 221 } 223 $now = time(); 222 $now = time(); 224 223 $var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() .'</b>'. ' - ' 225 224 . lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' ' … … 229 228 $var['frontend_name'] = " - ".$GLOBALS['phpgw_info']['server']['use_frontend_name']; 230 229 231 if($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == 0) 232 { 230 if($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == '0') 231 { 232 $changepasswd_url = $_SERVER['HTTP_HOST'] . $GLOBALS['phpgw_info']['server']['webserver_url'] . '/preferences/changepassword.php?cd=1'; 233 234 if ($GLOBALS['phpgw_info']['server']['use_https'] > 0) 235 $changepasswd_url = 'https://' . $changepasswd_url; 236 else 237 $changepasswd_url = 'http://' . $changepasswd_url; 238 239 echo '<script>' . 240 'if(location.href.indexOf("changepassword.php") == -1){' . 241 'location.href = "' . $changepasswd_url . '"' . 242 '}' . 243 '</script>'; 244 245 /* 233 246 $api_messages = lang('You are required to change your password during your first login') 234 247 . '<br> Click this image on the navbar: <img src="' 235 248 . $GLOBALS['phpgw']->common->image('preferences','navbar.gif').'">'; 236 } 249 */ 250 } 251 /* 237 252 elseif($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30)) 238 253 { 239 254 $api_messages = lang('it has been more then %1 days since you changed your password',30); 240 255 } 241 256 */ 257 /* 242 258 // This is gonna change 243 259 if(isset($cd)) 244 260 { 245 261 $var['messages'] = $api_messages . '<br>' . checkcode($cd); 246 } 262 }*/ 247 263 248 264 $var['logo_file'] = $GLOBALS['phpgw']->common->image('phpgwapi',$GLOBALS['phpgw_info']['server']['login_logo_file']?$GLOBALS['phpgw_info']['server']['login_logo_file']:'logo');
Note: See TracChangeset
for help on using the changeset viewer.