Changeset 594 for trunk/expressoAdmin1_2/inc
- Timestamp:
- 01/13/09 18:10:51 (15 years ago)
- Location:
- trunk/expressoAdmin1_2/inc
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php
r585 r594 370 370 } 371 371 372 function ge ra_login($params) {372 function generate_login($params) { 373 373 $params = unserialize($params['attributes']); 374 374 $context = $GLOBALS['phpgw_info']['server']['ldap_context']; … … 378 378 379 379 if( (isset($this->current_config['expressoAdmin_loginGenScript'])) && 380 ($this->current_config['expressoAdmin_loginGenScript'] !="nenhum")) {380 ($this->current_config['expressoAdmin_loginGenScript'])) { 381 381 382 382 include_once "if.login.inc.php"; … … 392 392 $gerador = $classe->newInstance(); 393 393 394 $login = $gerador->ge ra_login($params["first_name"],$params["second_name"],$this->ldap);394 $login = $gerador->generate_login($params["first_name"],$params["second_name"],$this->ldap); 395 395 396 396 /* -
trunk/expressoAdmin1_2/inc/class.uiaccounts.inc.php
r548 r594 21 21 'show_access_log' => True, 22 22 'css' => True, 23 'list_ina tive_users' => True23 'list_inactive_users' => True 24 24 ); 25 25 … … 53 53 } 54 54 55 function list_ina tive_users() {55 function list_inactive_users() { 56 56 57 57 $context = $_GET["context"]; … … 59 59 unset($GLOBALS['phpgw_info']['flags']['noheader']); 60 60 unset($GLOBALS['phpgw_info']['flags']['nonavbar']); 61 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['expressoAdmin1_2']['title'].' - '. lang('list ina tives');61 $GLOBALS['phpgw_info']['flags']['app_header'] = $GLOBALS['phpgw_info']['apps']['expressoAdmin1_2']['title'].' - '. lang('list inactives'); 62 62 $GLOBALS['phpgw']->common->phpgw_header(); 63 63 64 64 $p = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); 65 $p->set_file(array('ina tive_users' => 'list_inativos.tpl'));66 $p->set_block('ina tive_users','list','list');67 $p->set_block('ina tive_users','row','row');68 $p->set_block('ina tive_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'); 69 69 $contexts = array(); 70 70 array_push($contexts,$context); 71 71 72 $usuarios = $this->functions->get_ina tive_users($contexts);72 $usuarios = $this->functions->get_inactive_users($contexts); 73 73 74 74 … … 301 301 // First ABA 302 302 'display_spam_uid' => 'display:none', 303 'lang_ge rar_login' => lang('Generate login'),303 'lang_generate_login' => lang('Generate login'), 304 304 'start_coment_expired' => "<!--", 305 305 'end_coment_expired' => "-->", … … 339 339 340 340 if( (isset($this->current_config['expressoAdmin_loginGenScript'])) && 341 ($this->current_config['expressoAdmin_loginGenScript'] !="nenhum")) {341 ($this->current_config['expressoAdmin_loginGenScript'])) { 342 342 $var['input_uid_disabled'] = 'disabled'; 343 343 $var['comment_button'] = ' '; -
trunk/expressoAdmin1_2/inc/if.login.inc.php
r540 r594 11 11 interface login { 12 12 //É necessário para gerar os logins o primeiro nome, o segundo e uma conexão para o ldap da máquina. 13 public function ge ra_login($primeiro_nome,$segundo_nome,$conexao_ldap);13 public function generate_login($first_name,$last_name,$ldap_conn); 14 14 } 15 15
Note: See TracChangeset
for help on using the changeset viewer.