Changeset 233 for trunk/expressoAdmin1_2/inc
- Timestamp:
- 03/19/08 11:59:26 (16 years ago)
- Location:
- trunk/expressoAdmin1_2/inc
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoAdmin1_2/inc/class.imap_functions.inc.php
r63 r233 12 12 var $imap_server; 13 13 var $imap_port; 14 var $imap_trashfolder; 15 var $imap_sentfolder; 16 var $imap_draftsfolder; 17 var $imap_spamfolder; 14 18 15 19 function imap_functions(){ … … 18 22 $this->imap_server = $_SESSION['phpgw_info']['expresso']['email_server']['imapServer']; 19 23 $this->imap_port = $_SESSION['phpgw_info']['expresso']['email_server']['imapPort']; 24 $this->imap_trashfolder = $_SESSION['phpgw_info']['expresso']['email_server']['imapDefaultTrashFolder']; 25 $this->imap_sentfolder = $_SESSION['phpgw_info']['expresso']['email_server']['imapDefaultSentFolder']; 26 $this->imap_draftsfolder = $_SESSION['phpgw_info']['expresso']['email_server']['imapDefaultDraftsFolder']; 27 $this->imap_spamfolder = $_SESSION['phpgw_info']['expresso']['email_server']['imapDefaultSpamFolder']; 28 20 29 $this->imapDelimiter= $_SESSION['phpgw_info']['expresso']['email_server']['imapDelimiter']; 30 21 31 $this->imap = imap_open('{'.$this->imap_server.':'.$this->imap_port.'/novalidate-cert}', $this->imap_admin, $this->imap_passwd, OP_HALFOPEN); 22 32 $this->functions = new functions; … … 32 42 return $result; 33 43 } 34 if (!imap_createmailbox($this->imap, '{'.$this->imap_server.'}' . "user" . $this->imapDelimiter . $uid . $this->imapDelimiter . "Enviados")) 35 { 36 $error = imap_errors(); 37 $result['status'] = false; 38 $result['msg'] = 'Erro na funcao imap_function->create(Enviados): ' . $error[0]; 39 return $result; 40 } 41 if (!imap_createmailbox($this->imap, '{'.$this->imap_server.'}' . "user" . $this->imapDelimiter . $uid . $this->imapDelimiter . "Rascunhos")) 42 { 43 $error = imap_errors(); 44 $result['status'] = false; 45 $result['msg'] = 'Erro na funcao imap_function->create(Rascunho): ' . $error[0]; 46 return $result; 47 } 48 if (!imap_createmailbox($this->imap, '{'.$this->imap_server.'}' . "user" . $this->imapDelimiter . $uid . $this->imapDelimiter . "Lixeira")) 49 { 50 $error = imap_errors(); 51 $result['status'] = false; 52 $result['msg'] = 'Erro na funcao imap_function->create(Lixeira): ' . $error[0]; 53 return $result; 54 } 44 if (!imap_createmailbox($this->imap, '{'.$this->imap_server.'}' . "user" . $this->imapDelimiter . $uid . $this->imapDelimiter . $this->imap_sentfolder)) 45 { 46 $error = imap_errors(); 47 $result['status'] = false; 48 $result['msg'] = "Erro na funcao imap_function->create($this->imap_sentfolder): " . $error[0]; 49 return $result; 50 } 51 if (!imap_createmailbox($this->imap, '{'.$this->imap_server.'}' . "user" . $this->imapDelimiter . $uid . $this->imapDelimiter . $this->imap_draftsfolder)) 52 { 53 $error = imap_errors(); 54 $result['status'] = false; 55 $result['msg'] = "Erro na funcao imap_function->create($this->imap_draftsfolder): " . $error[0]; 56 return $result; 57 } 58 if (!imap_createmailbox($this->imap, '{'.$this->imap_server.'}' . "user" . $this->imapDelimiter . $uid . $this->imapDelimiter . $this->imap_trashfolder)) 59 { 60 $error = imap_errors(); 61 $result['status'] = false; 62 $result['msg'] = "Erro na funcao imap_function->create($this->imap_trashfolder): " . $error[0]; 63 return $result; 64 } 65 if ($this->imap_spamfolder != "") 66 if (!imap_createmailbox($this->imap, '{'.$this->imap_server.'}' . "user" . $this->imapDelimiter . $uid . $this->imapDelimiter . $this->imap_spamfolder)) 67 { 68 $error = imap_errors(); 69 $result['status'] = false; 70 $result['msg'] = "Erro na funcao imap_function->create($this->imap_spamfolder): " . $error[0]; 71 return $result; 72 } 73 74 55 75 if (!imap_set_quota($this->imap,"user" . $this->imapDelimiter . $uid, ($mailquota*1024))) 56 76 { -
trunk/expressoAdmin1_2/inc/class.uiaccounts.inc.php
r208 r233 213 213 $t->set_file(array("body" => "accounts_form.tpl")); 214 214 $t->set_block('body','main'); 215 $var = array( 216 217 'login_field_empty' => lang('Login field is empty'), 218 'login_field_must_have' => lang('Login field must have more than characters '), 219 'characters' => lang(' characters'), 220 'login_field_contains_not_allowed' => lang('Login field contains characters not allowed. characters'), 221 'password_field_empty' => lang('Password field is empty'), 222 're-pass_field_empty' => lang('Re-Password field is empty'), 223 'pass_re-pass_diferents' => lang('Password and Re-Password are differentes'), 224 'register_field_contains_not_allowed' => lang('Field register contains characters not allowed. Numbers are only allowed.'), 225 'cpf_field_not_allowed' => lang('Field cpf contains characters not allowed. Numbers are only allowed.'), 226 'email_field_empty' => lang('Email field is empty.'), 227 'first_name_empty' => lang('First name field is empty'), 228 'last_name_empty' => lang('Last name field is empty'), 229 'telephone_empty' => lang('Telphone field is empty'), 230 'redirect_email_empty' => lang('Redirect email field is empty'), 231 'without_quota' => lang('User without quota'), 232 'no_group_selected' => lang('No groups selected'), 233 'user_logon_script_empty' => lang('User logon script is empty'), 234 'user_home_path_empty' => lang('User home path is empty'), 235 'user_successfully_created' => lang('User successfully created!'), 236 'user_successfully_saved' => lang('User successfully saved!'), 237 'default_password_successfully_registered_cadastre' => lang('Default password successfully registered in cadastre'), 238 'user_password_returned_with_success' => lang('User password returned with success'), 239 'user_deleted_with_success' => lang('User deleted with success'), 240 'login_field_contains_not_allowed' => lang('Login field contains not allowed characters'), 241 'page_not_found' => lang('Page Not Found!'), 242 'type_name_new_manager' => lang('Type the name of the new manager'), 243 'list_login_field_incomplete' => lang('The List LOGIN field is incomplete\nThe name of the list must be created like this:\nlist-ORGANIZATION-NAME_OF_LIST.\nEx: lista-celepar-rh.'), 244 'email_field_not_valid' => lang('Email field is not valid'), 245 'searching' => lang('Searching...'), 246 'delete_the_list' => lang('Delete the list '), 247 'group_name_field_incomplete' => lang('The group NAME field is incomplete.\nThe group name must be created like this:\ngroup-ORGANIZATION-NAME_OF_GROUP.\nEx: grupo-celepar-rh.'), 248 'delete_the_group' => lang('Delete the group '), 249 'cpf_invalid_field' => lang('Invalid cpf field'), 250 'email_field_not_valid' => lang('Invalid E-mail field'), 251 'incorrect_telephone_field' => lang('Incorrect Telephone Field'), 252 'delete_the_user' => lang('Delete the user '), 253 'change_user_login' => lang('Change user login'), 254 'to' => lang('to'), 255 'user_renamed_success' => lang('user_renamed_success'), 256 'removed' => lang('removed'), 257 'mb_from_the_user_mailbox' => lang('mb_from_the_user_mailbox'), 258 'cleaning_users_inbox' => lang('cleaning_users_inbox') 259 ); 260 $t->set_var($var); 215 261 216 262 // Pega combo das organizações e seleciona, caso seja um post, o setor que o usuario selecionou. -
trunk/expressoAdmin1_2/inc/class.uigroups.inc.php
r180 r233 256 256 'back_url' => $GLOBALS['phpgw']->link('/index.php','menuaction=expressoAdmin1_2.uigroups.list_groups'), 257 257 'combo_manager_org' => $combo_manager_org, 258 'combo_all_orgs' => $combo_all_orgs 258 'combo_all_orgs' => $combo_all_orgs, 259 'group_name_field_is_empty' => lang('Group name field is empty'), 260 'description_field_is_empty' => lang('Description field is empty'), 261 'group_name_field_not_allowed' => lang('Group Name field contains characters not allowed.'), 262 'description_field_not_allowed' => lang('Description field containd characters not allowed.'), 263 'group_successfully_created' => lang('Group successfully created!'), 264 'group_successfully_saved' => lang('Group successfully saved!'), 265 'not_possible_select_all_users' => lang('It is not possible to select all the users of the organization root.'), 266 'group_successfully_deleted' => lang('Group successfully deleted!'), 267 'field_email_is_invalid' => lang('The field E-Mail is invalid'), 268 'delete_group' => lang('Delte group '), 269 'field_name_is_incomplete' => lang('The field NAME of the group is incomplete.\n 270 The group\'s name must be formated like this:\n 271 group-ORGANIZATION-GROUP_NAME.\n 272 Ex: grupo-celepar-rh') 273 259 274 ); 260 275 $p->set_var($var); -
trunk/expressoAdmin1_2/inc/class.uimaillists.inc.php
r208 r233 216 216 'combo_manager_org' => $combo_manager_org, 217 217 'combo_all_orgs' => $combo_all_orgs, 218 'defaultDomain' => $this->current_config['expressoAdmin_defaultDomain'] 218 'defaultDomain' => $this->current_config['expressoAdmin_defaultDomain'], 219 'combo_org' => $sectors, 220 'login_field_has_spaces' => lang('Login field has spaces'), 221 'list_email_field_is_empty' => lang('List e-mail field is empty'), 222 'no_user_is_part_of_the_list' => lang('No user is part of the list'), 223 'email_list_successfully_created' => lang('E-Mail list successfully created!'), 224 'email_list_successfully_saved' => lang('E-Mail list successfully saved!'), 225 'sending_control_list_successfully_saved' => lang('Sending control list sucessfully saved!'), 226 'it_is_not_possible_select_users' => lang('It is not possible to select all the users of the organization root'), 227 'email_list_successfully_deleted' => lang('E-Mail list successfully deleted'), 228 'login_field_incomplete' => lang('The LOGIN field is incomplete.\n The list name must be in the following format:\n 229 list-ORGANIZATION-LIST_NAME.\n Ex: lista-celepar-rh'), 230 'field_email_is_invalid' => lang('Field E-mail is invalid'), 231 'delete_list' =>('Delete list') 219 232 ); 233 220 234 $p->set_var($var); 221 235
Note: See TracChangeset
for help on using the changeset viewer.