Changeset 77


Ignore:
Timestamp:
10/03/07 10:13:32 (17 years ago)
Author:
niltonneto
Message:

* empty log message *

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/instant_messenger/inc/class.contacts_im.inc.php

    r68 r77  
    7070                $uid_unique = @array_values(@array_unique($ordenar)); 
    7171                 
    72                 foreach($uid_unique as $tmp){    
     72                foreach($uid_unique as $tmp) 
     73                {        
    7374                        $result = explode(";",$tmp); 
    74                         if($result[3] == $param['ou']){ 
     75                        if(strtolower($result[3]) == strtolower($param['ou'])) 
     76                        { 
    7577                                $return[$i]['cn']   = $result[0]; 
    7678                                $return[$i]['mail'] = $result[1]; 
  • trunk/instant_messenger/js/im_functions.js

    r76 r77  
    8989                                document.getElementById('div_contacts').innerHTML  = '<div><img src="' + img_wait.src + '" width="25px" heigth="25px" style="float:left;margin:3px "/>'; 
    9090                                document.getElementById('div_contacts').innerHTML += '<font style="color:#0000FF;float:left;margin:9px 5px">' + _this.get_lang("Wait a moment !!") + '</font></div>'; 
    91                                 _this.load_im(); 
     91                                setTimeout('IM.load_im()',2000); 
    9292                        _this.count_Vcard = 0; 
    9393                                _this.ImgStatus('available'); 
  • trunk/instant_messenger/js/im_win.js

    r76 r77  
    7979                        var main_menu_head_name_lable = func.newEl('span'); 
    8080                        func.confEl(main_menu_head_name_lable,'style','margin: 3px;'); 
    81                         main_menu_head_name_lable.innerHTML = "Nickname "; 
     81                        main_menu_head_name_lable.innerHTML = IM.get_lang('Nickname'); 
    8282 
    8383                        var br1 = func.newEl('br'); 
  • trunk/preferences/changepassword.php

    r72 r77  
    8787                { 
    8888                        $errors[] = lang('Your password must contain %1 or more letters', $GLOBALS['phpgw_info']['server']['num_letters_userpass']);                     
    89                 }                
    90                 # password that start with a-Z or 0-9 and contain _.-!@#$%&*+=| will be accepted. 
    91                 //else if (! ereg ("(^[a-zA-Z0-9_.\-\!@#$%&*+=|]*)$", $n_passwd ) ) 
    92                 //else if (! ereg ("(^[a-zA-Z0-9_.\-\!@#$%&*+=|\(\)\^\~\}\{\[\]\/\\\"\'\:\;\?]*)$", $n_passwd ) ) 
    93                 else if (! ereg ("([]^[a-zA-Z0-9\_\.\-\!\@\#\$\%\&\*\+\=\|\(\)\^\~\}\{\/\\\"\'\:\;\?]*)$", $n_passwd ) ) 
    94                 {                        
    95                         $errors[] = lang('Your password contains characters not allowed'); 
    96                 }                
    97                 # password must contain 2 special letters, numbers or special characters 
    98                 //else if ($GLOBALS['phpgw_info']['server']['num_special_letters_userpass'] && ! ereg ("([0-9_.\-!@#$%&*+=|]){".$GLOBALS['phpgw_info']['server']['num_special_letters_userpass'].",}", $n_passwd ) ) 
    99                 //else if ($GLOBALS['phpgw_info']['server']['num_special_letters_userpass'] && ! ereg ("([0-9_.\-!@#$%&*+=|\(\)\^\~\}\{\[\]\/\\\"\'\:\;\?]){".$GLOBALS['phpgw_info']['server']['num_special_letters_userpass']."}", $n_passwd ) ) 
    100                 else if ($GLOBALS['phpgw_info']['server']['num_special_letters_userpass'] && ! ereg ("([][0-9\_\.\-\!\@\#\$\%\&\*\+\=\|\(\)\^\~\}\{\/\\\"\'\:\;\?]){".$GLOBALS['phpgw_info']['server']['num_special_letters_userpass']."}", $n_passwd ) ) 
     89                } 
     90                 
     91                // Special Letters 
     92                $speccial_letter = 0; 
     93                for ($i=0; $i<strlen($n_passwd); $i++)  
     94                { 
     95                        $letter = $n_passwd[$i]; 
     96                        if (! ereg ("[a-zA-Z]", $letter ) ) 
     97                                $speccial_letter++; 
     98                } 
     99                if ($speccial_letter < $GLOBALS['phpgw_info']['server']['num_special_letters_userpass']) 
    101100                { 
    102101                        $errors[] = lang('Your password must contain at least %1 numbers or characters special', $GLOBALS['phpgw_info']['server']['num_special_letters_userpass']); 
Note: See TracChangeset for help on using the changeset viewer.