Changeset 547 for trunk/phpgwapi/templates/celepar/navbar.inc.php
- Timestamp:
- 11/03/08 16:05:23 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/templates/celepar/navbar.inc.php
r79 r547 235 235 $var['frontend_name'] = " - ".$GLOBALS['phpgw_info']['server']['use_frontend_name']; 236 236 237 if($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == '0') 237 /* 238 * Forçar termo de aceite por parte do usuário 239 */ 240 241 if(($GLOBALS['phpgw_info']['user']['agree_terms'] != 1) && ($GLOBALS['phpgw_info']['server']['use_agree_term']=='True')) //Ele deverá confirmar o termo de aceite. 242 { 243 $agreeterm_url = $_SERVER['HTTP_HOST'] . $GLOBALS['phpgw_info']['server']['webserver_url'] . '/preferences/termo_aceite.php'; 244 245 if ($GLOBALS['phpgw_info']['server']['use_https'] > 0) 246 $agreeterm_url = 'https://' . $agreeterm_url; 247 else 248 $agreeterm_url = 'http://' . $agreeterm_url; 249 250 echo '<script>' . 251 'if(location.href.indexOf("termo_aceite.php") == -1){' . 252 'location.href = "' . $agreeterm_url . '"' . 253 '}' . 254 '</script>'; 255 } 256 257 258 if(($GLOBALS['phpgw_info']['user']['lastpasswd_change'] == '0') && (($GLOBALS['phpgw_info']['user']['agree_terms'] == 1) || ($GLOBALS['phpgw_info']['server']['use_agree_term']!='True'))) 238 259 { 239 260 $changepasswd_url = $_SERVER['HTTP_HOST'] . $GLOBALS['phpgw_info']['server']['webserver_url'] . '/preferences/changepassword.php?cd=1';
Note: See TracChangeset
for help on using the changeset viewer.