Changeset 594


Ignore:
Timestamp:
01/13/09 18:10:51 (15 years ago)
Author:
niltonneto
Message:

Resolve #392

Location:
trunk/expressoAdmin1_2
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php

    r585 r594  
    370370        } 
    371371         
    372         function gera_login($params) { 
     372        function generate_login($params) { 
    373373                $params = unserialize($params['attributes']); 
    374374                $context = $GLOBALS['phpgw_info']['server']['ldap_context']; 
     
    378378                 
    379379                if( (isset($this->current_config['expressoAdmin_loginGenScript'])) &&  
    380                                 ($this->current_config['expressoAdmin_loginGenScript']!="nenhum")) { 
     380                                ($this->current_config['expressoAdmin_loginGenScript'])) { 
    381381                         
    382382                        include_once "if.login.inc.php"; 
     
    392392                        $gerador = $classe->newInstance(); 
    393393 
    394                         $login = $gerador->gera_login($params["first_name"],$params["second_name"],$this->ldap); 
     394                        $login = $gerador->generate_login($params["first_name"],$params["second_name"],$this->ldap); 
    395395                         
    396396                        /* 
  • trunk/expressoAdmin1_2/inc/class.uiaccounts.inc.php

    r548 r594  
    2121                        'show_access_log'                       => True, 
    2222                        'css'                                           => True, 
    23                         'list_inative_users' => True 
     23                        'list_inactive_users' => True 
    2424                ); 
    2525 
     
    5353                } 
    5454 
    55                 function list_inative_users() { 
     55                function list_inactive_users() { 
    5656 
    5757                        $context = $_GET["context"]; 
     
    5959                        unset($GLOBALS['phpgw_info']['flags']['noheader']); 
    6060                        unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 
    61                         $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['expressoAdmin1_2']['title'].' - '. lang('list inatives'); 
     61                        $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['expressoAdmin1_2']['title'].' - '. lang('list inactives'); 
    6262                        $GLOBALS['phpgw']->common->phpgw_header(); 
    6363 
    6464                        $p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 
    65                         $p->set_file(array('inative_users' => 'list_inativos.tpl')); 
    66                         $p->set_block('inative_users','list','list'); 
    67                         $p->set_block('inative_users','row','row'); 
    68                         $p->set_block('inative_users','row_empty','row_empty'); 
     65                        $p->set_file(array('inactive_users' => 'list_inactives.tpl')); 
     66                        $p->set_block('inactive_users','list','list'); 
     67                        $p->set_block('inactive_users','row','row'); 
     68                        $p->set_block('inactive_users','row_empty','row_empty'); 
    6969                        $contexts = array(); 
    7070                        array_push($contexts,$context); 
    7171                                                 
    72                         $usuarios = $this->functions->get_inative_users($contexts); 
     72                        $usuarios = $this->functions->get_inactive_users($contexts); 
    7373 
    7474         
     
    301301                                // First ABA 
    302302                                'display_spam_uid'                              => 'display:none', 
    303                                 'lang_gerar_login'              => lang('Generate login'), 
     303                                'lang_generate_login'              => lang('Generate login'), 
    304304                                'start_coment_expired'                                          => "<!--", 
    305305                                'end_coment_expired'                                            => "-->", 
     
    339339                         
    340340                        if( (isset($this->current_config['expressoAdmin_loginGenScript'])) &&  
    341                                 ($this->current_config['expressoAdmin_loginGenScript']!="nenhum")) { 
     341                                ($this->current_config['expressoAdmin_loginGenScript'])) { 
    342342                                $var['input_uid_disabled'] = 'disabled'; 
    343343                                $var['comment_button'] = ' '; 
  • trunk/expressoAdmin1_2/inc/if.login.inc.php

    r540 r594  
    1111interface login { 
    1212        //É necessário para gerar os logins o primeiro nome, o segundo e uma conexão para o ldap da máquina. 
    13         public function gera_login($primeiro_nome,$segundo_nome,$conexao_ldap); 
     13        public function generate_login($first_name,$last_name,$ldap_conn); 
    1414} 
    1515 
  • trunk/expressoAdmin1_2/js/jscode/users.js

    r540 r594  
    195195} 
    196196 
    197 function gera_login(first_name,second_name) { 
     197function generate_login(first_name,second_name) { 
    198198        if ((first_name=='') || (second_name=='')) { 
    199199                alert(get_lang("You must type the first and the second name before generate the login")); 
     
    205205        var attributes = connector.serialize(attrs_array); 
    206206         
    207         var hangler_gera_login = function(data) { 
     207        var handler_generate_login = function(data) { 
    208208                if(data['status']) { 
    209209                        document.getElementById('uid').value = data['msg']; 
     
    215215        } 
    216216 
    217         cExecute ('$this.ldap_functions.gera_login&attributes='+attributes, hangler_gera_login); 
     217        cExecute ('$this.ldap_functions.generate_login&attributes='+attributes, handler_generate_login); 
    218218} 
    219219 
  • trunk/expressoAdmin1_2/templates/default/accounts_form.tpl

    r548 r594  
    5555                                <table border="0" style="{display_input_account_lid}"><tr><td> 
    5656                                        <input type="text" name="uid" id="uid" value="{uid}"autocomplete="off" {disabled} {input_uid_disabled} size=20 onKeyUp="javascript:emailSuggestion_expressoadmin('{use_suggestion_in_logon_script}','{concatenateDomain}')" onblur="users_form.mail.value=users_form.mail1.value;"></input> 
    57                                 </td>{comment_button}<td><input type="button" value="{lang_gerar_login}" onclick="javascript:gera_login(document.getElementById('givenname').value,document.getElementById('sn').value)" ></td>{end_comment_button}</tr></table> 
     57                                </td>{comment_button}<td><input type="button" value="{lang_generate_login}" onclick="javascript:generate_login(document.getElementById('givenname').value,document.getElementById('sn').value)" ></td>{end_comment_button}</tr></table> 
    5858                                <spam style="{display_spam_uid}"><font size="3">{uid}</font></spam> 
    5959                        </td> 
  • trunk/expressoAdmin1_2/templates/default/config.tpl

    r540 r594  
    166166                <td> 
    167167                <select name="newsettings[expressoAdmin_loginGenScript]"> 
    168                          <option value="nenhum">{lang_none}</option> 
     168                         <option value="0">{lang_none}</option> 
    169169                         {rows_login_generator} 
    170170                </select> 
Note: See TracChangeset for help on using the changeset viewer.