Changeset 72 for trunk/phpgwapi


Ignore:
Timestamp:
09/24/07 10:22:29 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

Location:
trunk/phpgwapi
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.auth_ldap.inc.php

    r44 r72  
    138138                        $allValues = ldap_get_entries($ds, $sri); 
    139139                        $entry['userpassword'] = $this->encrypt_password($new_passwd); 
     140                        $entry['phpgwlastpasswdchange'] = time(); 
    140141                         
    141142                        /* SAMBA Begin's*/ 
  • trunk/phpgwapi/templates/celepar/navbar.inc.php

    r25 r72  
    1313        function parse_navbar($force = False) 
    1414        { 
    15                  
    1615                $GLOBALS['celepar_tpl'] = createobject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); 
    1716 
     
    221220                                . lang('Current users') . ': ' . $GLOBALS['phpgw']->session->total() . '</a>'; 
    222221                        } 
    223                         $now = time(); 
     222                        $now = time();                   
    224223                        $var['user_info'] = '<b>'.$GLOBALS['phpgw']->common->display_fullname() .'</b>'. ' - ' 
    225224                        . lang($GLOBALS['phpgw']->common->show_date($now,'l')) . ' ' 
     
    229228                                $var['frontend_name'] = " - ".$GLOBALS['phpgw_info']['server']['use_frontend_name']; 
    230229 
    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                                /* 
    233246                                $api_messages = lang('You are required to change your password during your first login') 
    234247                                . '<br> Click this image on the navbar: <img src="' 
    235248                                . $GLOBALS['phpgw']->common->image('preferences','navbar.gif').'">'; 
    236                         } 
     249                                */ 
     250                        } 
     251                        /* 
    237252                        elseif($GLOBALS['phpgw_info']['user']['lastpasswd_change'] < time() - (86400*30)) 
    238253                        { 
    239254                                $api_messages = lang('it has been more then %1 days since you changed your password',30); 
    240255                        } 
    241  
     256                        */ 
     257                        /* 
    242258                        // This is gonna change 
    243259                        if(isset($cd)) 
    244260                        { 
    245261                                $var['messages'] = $api_messages . '<br>' . checkcode($cd); 
    246                         } 
     262                        }*/ 
    247263 
    248264                        $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.