[2] | 1 | <?php |
---|
| 2 | /***************************************************************************\ |
---|
| 3 | * EGroupWare - EMailAdmin * |
---|
| 4 | * http://www.egroupware.org * |
---|
| 5 | * Written by : Lars Kneschke [lkneschke@egroupware.org] * |
---|
| 6 | * ------------------------------------------------- * |
---|
| 7 | * This program is free software; you can redistribute it and/or modify it * |
---|
| 8 | * under the terms of the GNU General Public License as published by the * |
---|
| 9 | * Free Software Foundation; either version 2 of the License, or (at your * |
---|
| 10 | * option) any later version. * |
---|
| 11 | \***************************************************************************/ |
---|
| 12 | |
---|
| 13 | class ui |
---|
| 14 | { |
---|
| 15 | |
---|
| 16 | var $public_functions = array |
---|
| 17 | ( |
---|
| 18 | 'addProfile' => True, |
---|
| 19 | 'css' => True, |
---|
| 20 | 'deleteProfile' => True, |
---|
| 21 | 'editProfile' => True, |
---|
| 22 | 'listProfiles' => True, |
---|
| 23 | 'saveProfile' => True |
---|
| 24 | ); |
---|
| 25 | |
---|
| 26 | var $cats; |
---|
| 27 | var $nextmatchs; |
---|
| 28 | var $t; |
---|
| 29 | var $boqmailldap; |
---|
| 30 | |
---|
| 31 | function ui() |
---|
| 32 | { |
---|
| 33 | $this->cats = CreateObject('phpgwapi.categories'); |
---|
| 34 | $this->nextmatchs = CreateObject('phpgwapi.nextmatchs'); |
---|
| 35 | $this->t = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); |
---|
| 36 | #$this->grants = $phpgw->acl->get_grants('notes'); |
---|
| 37 | #$this->grants[$this->account] = PHPGW_ACL_READ + PHPGW_ACL_ADD + PHPGW_ACL_EDIT + PHPGW_ACL_DELETE; |
---|
| 38 | $this->boemailadmin = CreateObject('emailadmin.bo'); |
---|
| 39 | } |
---|
| 40 | |
---|
| 41 | function addProfile() |
---|
| 42 | { |
---|
| 43 | $this->display_app_header(); |
---|
| 44 | |
---|
| 45 | $this->t->set_file(array("body" => "editprofile.tpl")); |
---|
| 46 | $this->t->set_block('body','main'); |
---|
| 47 | |
---|
| 48 | $this->translate(); |
---|
| 49 | |
---|
| 50 | #$this->t->set_var('profile_name',$profileList[0]['description']); |
---|
| 51 | $this->t->set_var('smtpActiveTab','1'); |
---|
| 52 | $this->t->set_var('imapActiveTab','1'); |
---|
| 53 | |
---|
| 54 | $linkData = array |
---|
| 55 | ( |
---|
| 56 | 'menuaction' => 'emailadmin.ui.saveProfile' |
---|
| 57 | ); |
---|
| 58 | $this->t->set_var('action_url',$GLOBALS['phpgw']->link('/index.php',$linkData)); |
---|
| 59 | |
---|
| 60 | $linkData = array |
---|
| 61 | ( |
---|
| 62 | 'menuaction' => 'emailadmin.ui.listProfiles' |
---|
| 63 | ); |
---|
| 64 | $this->t->set_var('back_url',$GLOBALS['phpgw']->link('/index.php',$linkData)); |
---|
| 65 | |
---|
| 66 | foreach($this->boemailadmin->getSMTPServerTypes() as $key => $value) |
---|
| 67 | { |
---|
| 68 | $this->t->set_var("lang_smtp_option_$key",$value); |
---|
| 69 | }; |
---|
| 70 | |
---|
| 71 | foreach($this->boemailadmin->getIMAPServerTypes() as $key => $value) |
---|
| 72 | { |
---|
| 73 | $this->t->set_var("lang_imap_option_$key",$value['description']); |
---|
| 74 | }; |
---|
| 75 | |
---|
| 76 | $this->t->parse("out","main"); |
---|
| 77 | print $this->t->get('out','main'); |
---|
| 78 | } |
---|
| 79 | |
---|
| 80 | function css() |
---|
| 81 | { |
---|
| 82 | $appCSS = |
---|
| 83 | 'th.activetab |
---|
| 84 | { |
---|
| 85 | color:#000000; |
---|
| 86 | background-color:#D3DCE3; |
---|
| 87 | border-top-width : 1px; |
---|
| 88 | border-top-style : solid; |
---|
| 89 | border-top-color : Black; |
---|
| 90 | border-left-width : 1px; |
---|
| 91 | border-left-style : solid; |
---|
| 92 | border-left-color : Black; |
---|
| 93 | border-right-width : 1px; |
---|
| 94 | border-right-style : solid; |
---|
| 95 | border-right-color : Black; |
---|
| 96 | } |
---|
| 97 | |
---|
| 98 | th.inactivetab |
---|
| 99 | { |
---|
| 100 | color:#000000; |
---|
| 101 | background-color:#E8F0F0; |
---|
| 102 | border-bottom-width : 1px; |
---|
| 103 | border-bottom-style : solid; |
---|
| 104 | border-bottom-color : Black; |
---|
| 105 | } |
---|
| 106 | |
---|
| 107 | .td_left { border-left : 1px solid Gray; border-top : 1px solid Gray; } |
---|
| 108 | .td_right { border-right : 1px solid Gray; border-top : 1px solid Gray; } |
---|
| 109 | |
---|
| 110 | div.activetab{ display:inline; } |
---|
| 111 | div.inactivetab{ display:none; }'; |
---|
| 112 | |
---|
| 113 | return $appCSS; |
---|
| 114 | } |
---|
| 115 | |
---|
| 116 | function deleteProfile() |
---|
| 117 | { |
---|
| 118 | $this->boemailadmin->deleteProfile($_GET['profileid']); |
---|
| 119 | $this->listProfiles(); |
---|
| 120 | } |
---|
| 121 | |
---|
| 122 | function display_app_header() |
---|
| 123 | { |
---|
| 124 | if(!@is_object($GLOBALS['phpgw']->js)) |
---|
| 125 | { |
---|
| 126 | $GLOBALS['phpgw']->js = CreateObject('phpgwapi.javascript'); |
---|
| 127 | } |
---|
| 128 | $GLOBALS['phpgw']->js->validate_file('tabs','tabs'); |
---|
| 129 | switch($_GET['menuaction']) |
---|
| 130 | { |
---|
| 131 | case 'emailadmin.ui.addProfile': |
---|
| 132 | case 'emailadmin.ui.editProfile': |
---|
| 133 | $GLOBALS['phpgw']->js->validate_file('jscode','editProfile','emailadmin'); |
---|
[2439] | 134 | //$GLOBALS['phpgw']->js->set_onload('javascript:initAll();'); |
---|
[2889] | 135 | //echo $GLOBALS['phpgw']->js->get_script_links(); |
---|
| 136 | //$GLOBALS['phpgw']->js->unset_script_link('emailadmin','jscode'); |
---|
[2] | 137 | break; |
---|
| 138 | } |
---|
[2419] | 139 | //$GLOBALS['phpgw']->common->phpgw_header(); |
---|
| 140 | //echo parse_navbar(); |
---|
[2] | 141 | } |
---|
| 142 | |
---|
[2889] | 143 | function editProfile( $_profileID = null ) |
---|
[2] | 144 | { |
---|
[2889] | 145 | if ( $_profileID && is_array( $_profileID ) && array_key_exists( 'profileid', $_profileID ) ) |
---|
[2] | 146 | { |
---|
[2889] | 147 | $profileID = $_profileID[ 'profileid' ]; |
---|
[2] | 148 | } |
---|
| 149 | elseif(is_int(intval($_GET['profileid'])) && !empty($_GET['profileid'])) |
---|
| 150 | { |
---|
| 151 | $profileID = intval($_GET['profileid']); |
---|
| 152 | } |
---|
| 153 | else |
---|
| 154 | { |
---|
| 155 | return false; |
---|
| 156 | } |
---|
| 157 | |
---|
| 158 | $profileList = $this->boemailadmin->getProfileList($profileID); |
---|
| 159 | $profileData = $this->boemailadmin->getProfile($profileID); |
---|
| 160 | $this->display_app_header(); |
---|
| 161 | |
---|
| 162 | $this->t->set_file(array("body" => "editprofile.tpl")); |
---|
| 163 | $this->t->set_block('body','main'); |
---|
| 164 | |
---|
| 165 | $this->translate(); |
---|
[2889] | 166 | |
---|
[2] | 167 | foreach($profileData as $key => $value) |
---|
| 168 | { |
---|
| 169 | //print "$key $value<br>"; |
---|
| 170 | switch($key) |
---|
| 171 | { |
---|
| 172 | case 'imapEnableCyrusAdmin': |
---|
| 173 | case 'imapEnableSieve': |
---|
| 174 | case 'imapTLSAuthentication': |
---|
| 175 | case 'imapTLSEncryption': |
---|
| 176 | case 'smtpAuth': |
---|
| 177 | case 'smtpLDAPUseDefault': |
---|
| 178 | case 'userDefinedAccounts': |
---|
| 179 | case 'imapoldcclient': |
---|
[1523] | 180 | case 'imapCreateSpamFolder': |
---|
[2] | 181 | if($value == 'yes') |
---|
| 182 | $this->t->set_var('selected_'.$key,'checked="1"'); |
---|
| 183 | break; |
---|
| 184 | case 'imapType': |
---|
| 185 | case 'smtpType': |
---|
| 186 | case 'imapLoginType': |
---|
| 187 | $this->t->set_var('selected_'.$key.'_'.$value,'selected="1"'); |
---|
| 188 | break; |
---|
| 189 | case 'imapDelimiter': |
---|
| 190 | if ($value == '/') |
---|
| 191 | $this->t->set_var('selected_'.$key.'_slash','selected="1"'); |
---|
| 192 | elseif ($value == '.') |
---|
| 193 | $this->t->set_var('selected_'.$key.'_dot','selected="1"'); |
---|
| 194 | break; |
---|
| 195 | default: |
---|
| 196 | $this->t->set_var('value_'.$key,$value); |
---|
| 197 | break; |
---|
| 198 | } |
---|
| 199 | } |
---|
| 200 | |
---|
| 201 | $linkData = array |
---|
| 202 | ( |
---|
| 203 | 'menuaction' => 'emailadmin.ui.saveProfile', |
---|
| 204 | 'profileID' => $profileID |
---|
| 205 | ); |
---|
| 206 | $this->t->set_var('action_url',$GLOBALS['phpgw']->link('/index.php',$linkData)); |
---|
| 207 | |
---|
| 208 | $linkData = array |
---|
| 209 | ( |
---|
| 210 | 'menuaction' => 'emailadmin.ui.listProfiles' |
---|
| 211 | ); |
---|
| 212 | $this->t->set_var('back_url',$GLOBALS['phpgw']->link('/index.php',$linkData)); |
---|
| 213 | |
---|
| 214 | foreach($this->boemailadmin->getSMTPServerTypes() as $key => $value) |
---|
| 215 | { |
---|
| 216 | $this->t->set_var("lang_smtp_option_$key",$value); |
---|
| 217 | }; |
---|
| 218 | |
---|
| 219 | foreach($this->boemailadmin->getIMAPServerTypes() as $key => $value) |
---|
| 220 | { |
---|
| 221 | $this->t->set_var("lang_imap_option_$key",$value['description']); |
---|
| 222 | }; |
---|
[2889] | 223 | |
---|
[2] | 224 | $this->t->parse("out","main"); |
---|
[2889] | 225 | $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script' ] .= '<script>initAll( );tab.display( ' |
---|
| 226 | . ( ( array_key_exists( 'tabpage', $_GET ) ) ? $_GET[ 'tabpage' ] : 1 ) |
---|
| 227 | . ' );</script>'; |
---|
| 228 | echo "<style>{$this -> css( )}</style>{$this->t->get('out','main')}"; |
---|
[2] | 229 | } |
---|
| 230 | |
---|
| 231 | function listProfiles() |
---|
| 232 | { |
---|
| 233 | $this->display_app_header(); |
---|
| 234 | |
---|
| 235 | $this->t->set_file(array("body" => "listprofiles.tpl")); |
---|
| 236 | $this->t->set_block('body','main'); |
---|
| 237 | |
---|
| 238 | $this->translate(); |
---|
| 239 | |
---|
| 240 | $profileList = $this->boemailadmin->getProfileList(); |
---|
| 241 | |
---|
| 242 | // create the data array |
---|
| 243 | if ($profileList) |
---|
| 244 | { |
---|
| 245 | for ($i=0; $i < count($profileList); $i++) |
---|
| 246 | { |
---|
| 247 | $linkData = array |
---|
| 248 | ( |
---|
| 249 | 'menuaction' => 'emailadmin.ui.editProfile', |
---|
| 250 | 'nocache' => '1', |
---|
| 251 | 'tabpage' => '3', |
---|
| 252 | 'profileid' => $profileList[$i]['profileID'] |
---|
| 253 | ); |
---|
| 254 | $imapServerLink = '<a href="'.$GLOBALS['phpgw']->link('/index.php',$linkData).'">'.$profileList[$i]['imapServer'].'</a>'; |
---|
| 255 | |
---|
| 256 | $linkData = array |
---|
| 257 | ( |
---|
| 258 | 'menuaction' => 'emailadmin.ui.editProfile', |
---|
| 259 | 'nocache' => '1', |
---|
| 260 | 'tabpage' => '1', |
---|
| 261 | 'profileid' => $profileList[$i]['profileID'] |
---|
| 262 | ); |
---|
| 263 | $descriptionLink = '<a href="'.$GLOBALS['phpgw']->link('/index.php',$linkData).'">'.$profileList[$i]['description'].'</a>'; |
---|
| 264 | |
---|
| 265 | $linkData = array |
---|
| 266 | ( |
---|
| 267 | 'menuaction' => 'emailadmin.ui.editProfile', |
---|
| 268 | 'nocache' => '1', |
---|
| 269 | 'tabpage' => '2', |
---|
| 270 | 'profileid' => $profileList[$i]['profileID'] |
---|
| 271 | ); |
---|
| 272 | $smtpServerLink = '<a href="'.$GLOBALS['phpgw']->link('/index.php',$linkData).'">'.$profileList[$i]['smtpServer'].'</a>'; |
---|
| 273 | |
---|
| 274 | $linkData = array |
---|
| 275 | ( |
---|
| 276 | 'menuaction' => 'emailadmin.ui.deleteProfile', |
---|
| 277 | 'profileid' => $profileList[$i]['profileID'] |
---|
| 278 | ); |
---|
| 279 | $deleteLink = '<a href="'.$GLOBALS['phpgw']->link('/index.php',$linkData). |
---|
| 280 | '" onClick="return confirm(\''.lang('Do you really want to delete this Profile').'?\')">'. |
---|
| 281 | lang('delete').'</a>'; |
---|
| 282 | |
---|
| 283 | $data[] = array( |
---|
| 284 | $descriptionLink, |
---|
| 285 | $smtpServerLink, |
---|
| 286 | $imapServerLink, |
---|
| 287 | $deleteLink |
---|
| 288 | |
---|
| 289 | ); |
---|
| 290 | } |
---|
| 291 | } |
---|
| 292 | |
---|
| 293 | // create the array containing the table header |
---|
| 294 | $rows = array( |
---|
| 295 | lang('description'), |
---|
| 296 | lang('smtp server name'), |
---|
| 297 | lang('imap/pop3 server name'), |
---|
| 298 | lang('delete') |
---|
| 299 | ); |
---|
| 300 | |
---|
| 301 | // create the table html code |
---|
| 302 | $this->t->set_var('server_next_match',$this->nextMatchTable( |
---|
| 303 | $rows, |
---|
| 304 | $data, |
---|
| 305 | lang('profile list'), |
---|
| 306 | $_start, |
---|
| 307 | $_total, |
---|
| 308 | $_menuAction) |
---|
| 309 | ); |
---|
| 310 | |
---|
| 311 | $linkData = array |
---|
| 312 | ( |
---|
| 313 | 'menuaction' => 'emailadmin.ui.addProfile' |
---|
| 314 | ); |
---|
| 315 | $this->t->set_var('add_link',$GLOBALS['phpgw']->link('/index.php',$linkData)); |
---|
| 316 | |
---|
| 317 | $this->t->parse("out","main"); |
---|
| 318 | |
---|
| 319 | print $this->t->get('out','main'); |
---|
| 320 | |
---|
| 321 | } |
---|
| 322 | |
---|
| 323 | function nextMatchTable($_rows, $_data, $_description, $_start, $_total, $_menuAction) |
---|
| 324 | { |
---|
| 325 | $template = CreateObject('phpgwapi.Template',PHPGW_APP_TPL); |
---|
| 326 | $template->set_file(array("body" => "nextMatch.tpl")); |
---|
| 327 | $template->set_block('body','row_list','rowList'); |
---|
| 328 | $template->set_block('body','header_row','headerRow'); |
---|
| 329 | |
---|
| 330 | $var = Array( |
---|
| 331 | 'th_bg' => $GLOBALS['phpgw_info']['theme']['th_bg'], |
---|
| 332 | 'left_next_matchs' => $this->nextmatchs->left('/index.php',$start,$total,'menuaction=emailadmin.ui.listServers'), |
---|
| 333 | 'right_next_matchs' => $this->nextmatchs->right('/admin/groups.php',$start,$total,'menuaction=emailadmin.ui.listServers'), |
---|
| 334 | 'lang_groups' => lang('user groups'), |
---|
| 335 | 'sort_name' => $this->nextmatchs->show_sort_order($sort,'account_lid',$order,'/index.php',lang('name'),'menuaction=emailadmin.ui.listServers'), |
---|
| 336 | 'description' => $_description, |
---|
| 337 | 'header_edit' => lang('Edit'), |
---|
| 338 | 'header_delete' => lang('Delete') |
---|
| 339 | ); |
---|
| 340 | $template->set_var($var); |
---|
| 341 | |
---|
| 342 | $data = ''; |
---|
| 343 | if(is_array($_rows)) |
---|
| 344 | { |
---|
| 345 | foreach($_rows as $value) |
---|
| 346 | { |
---|
| 347 | $data .= "<td align='center'><b>$value</b></td>"; |
---|
| 348 | } |
---|
| 349 | $template->set_var('header_row_data', $data); |
---|
| 350 | $template->fp('headerRow','header_row',True); |
---|
| 351 | #$template->fp('header_row','header_row',True); |
---|
| 352 | } |
---|
| 353 | |
---|
| 354 | if(is_array($_data)) |
---|
| 355 | { |
---|
| 356 | foreach($_data as $value) |
---|
| 357 | { |
---|
| 358 | $data = ''; |
---|
| 359 | foreach($value as $rowData) |
---|
| 360 | { |
---|
| 361 | $data .= "<td align='center'>$rowData</td>"; |
---|
| 362 | } |
---|
| 363 | $template->set_var('row_data', $data); |
---|
| 364 | $template->fp('rowList','row_list',True); |
---|
| 365 | } |
---|
| 366 | } |
---|
| 367 | |
---|
| 368 | return $template->fp('out','body'); |
---|
| 369 | |
---|
| 370 | } |
---|
| 371 | |
---|
| 372 | function saveProfile() |
---|
| 373 | { |
---|
| 374 | $globalSettings = array(); |
---|
| 375 | $smtpSettings = array(); |
---|
| 376 | $imapSettings = array(); |
---|
| 377 | |
---|
| 378 | // try to get the profileID |
---|
| 379 | if(is_int(intval($_GET['profileID'])) && !empty($_GET['profileID'])) |
---|
| 380 | { |
---|
| 381 | $globalSettings['profileID'] = intval($_GET['profileID']); |
---|
| 382 | } |
---|
| 383 | $globalSettings['description'] = $_POST['globalsettings']['description']; |
---|
| 384 | $globalSettings['defaultDomain'] = $_POST['globalsettings']['defaultDomain']; |
---|
| 385 | $globalSettings['organisationName'] = $_POST['globalsettings']['organisationName']; |
---|
| 386 | $globalSettings['userDefinedAccounts'] = $_POST['globalsettings']['userDefinedAccounts']; |
---|
| 387 | |
---|
| 388 | |
---|
| 389 | // get the settings for the smtp server |
---|
| 390 | $smtpType = $_POST['smtpsettings']['smtpType']; |
---|
| 391 | foreach($this->boemailadmin->getFieldNames($smtpType,'smtp') as $key) |
---|
| 392 | { |
---|
| 393 | $smtpSettings[$key] = $_POST['smtpsettings'][$smtpType][$key]; |
---|
| 394 | } |
---|
| 395 | $smtpSettings['smtpType'] = $smtpType; |
---|
| 396 | |
---|
| 397 | #_debug_array($smtpSettings); |
---|
| 398 | |
---|
| 399 | // get the settings for the imap/pop3 server |
---|
| 400 | $imapType = $_POST['imapsettings']['imapType']; |
---|
| 401 | foreach($this->boemailadmin->getFieldNames($imapType,'imap') as $key) |
---|
| 402 | { |
---|
| 403 | $imapSettings[$key] = $_POST['imapsettings'][$imapType][$key]; |
---|
| 404 | } |
---|
| 405 | $imapSettings['imapType'] = $imapType; |
---|
[2891] | 406 | |
---|
[2] | 407 | $this->boemailadmin->saveProfile($globalSettings, $smtpSettings, $imapSettings); |
---|
[2891] | 408 | $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script' ] .= "<script>ExpressoLivre.link( '{$GLOBALS[ 'phpgw' ] -> link( '/', 'menuaction=emailadmin.ui.listProfiles' )}' );</script>"; |
---|
| 409 | exit; |
---|
[2] | 410 | } |
---|
[2891] | 411 | |
---|
[2] | 412 | function translate() |
---|
| 413 | { |
---|
| 414 | # skeleton |
---|
| 415 | # $this->t->set_var('',lang('')); |
---|
| 416 | |
---|
| 417 | $this->t->set_var('lang_server_name',lang('server name')); |
---|
| 418 | $this->t->set_var('lang_server_description',lang('description')); |
---|
| 419 | $this->t->set_var('lang_edit',lang('edit')); |
---|
| 420 | $this->t->set_var('lang_save',lang('save')); |
---|
| 421 | $this->t->set_var('lang_delete',lang('delete')); |
---|
| 422 | $this->t->set_var('lang_back',lang('back')); |
---|
| 423 | $this->t->set_var('lang_remove',lang('remove')); |
---|
| 424 | $this->t->set_var('lang_ldap_server',lang('LDAP server')); |
---|
| 425 | $this->t->set_var('lang_ldap_basedn',lang('LDAP basedn')); |
---|
| 426 | $this->t->set_var('lang_ldap_server_admin',lang('admin dn')); |
---|
| 427 | $this->t->set_var('lang_ldap_server_password',lang('admin password')); |
---|
| 428 | $this->t->set_var('lang_add_profile',lang('add profile')); |
---|
| 429 | $this->t->set_var('lang_domain_name',lang('domainname')); |
---|
| 430 | $this->t->set_var('lang_SMTP_server_hostname_or_IP_address',lang('SMTP-Server hostname or IP address')); |
---|
| 431 | $this->t->set_var('lang_SMTP_server_port',lang('SMTP-Server port')); |
---|
| 432 | $this->t->set_var('lang_Use_SMTP_auth',lang('Use SMTP auth')); |
---|
| 433 | $this->t->set_var('lang_Select_type_of_SMTP_Server',lang('Select type of SMTP Server')); |
---|
| 434 | $this->t->set_var('lang_profile_name',lang('Profile Name')); |
---|
| 435 | $this->t->set_var('lang_default_domain',lang('enter your default mail domain (from: user@domain)')); |
---|
| 436 | $this->t->set_var('lang_organisation_name',lang('name of organisation')); |
---|
| 437 | $this->t->set_var('lang_user_defined_accounts',lang('users can define their own emailaccounts')); |
---|
| 438 | $this->t->set_var('lang_LDAP_server_hostname_or_IP_address',lang('LDAP server hostname or ip address')); |
---|
| 439 | $this->t->set_var('lang_LDAP_server_admin_dn',lang('LDAP server admin DN')); |
---|
| 440 | $this->t->set_var('lang_LDAP_server_admin_pw',lang('LDAP server admin password')); |
---|
| 441 | $this->t->set_var('lang_LDAP_server_base_dn',lang('LDAP server accounts DN')); |
---|
| 442 | $this->t->set_var('lang_use_LDAP_defaults',lang('use LDAP defaults')); |
---|
| 443 | $this->t->set_var('lang_LDAP_settings',lang('LDAP settings')); |
---|
| 444 | $this->t->set_var('lang_select_type_of_imap/pop3_server',lang('select type of IMAP/POP3 server')); |
---|
| 445 | $this->t->set_var('lang_pop3_server_hostname_or_IP_address',lang('POP3 server hostname or ip address')); |
---|
| 446 | $this->t->set_var('lang_pop3_server_port',lang('POP3 server port')); |
---|
| 447 | $this->t->set_var('lang_imap_server_hostname_or_IP_address',lang('IMAP server hostname or ip address')); |
---|
| 448 | $this->t->set_var('lang_imap_server_port',lang('IMAP server port')); |
---|
| 449 | $this->t->set_var('lang_use_tls_encryption',lang('use tls encryption')); |
---|
| 450 | $this->t->set_var('lang_use_tls_authentication',lang('use tls authentication')); |
---|
| 451 | $this->t->set_var('lang_sieve_settings',lang('Sieve settings')); |
---|
| 452 | $this->t->set_var('lang_enable_sieve',lang('enable Sieve')); |
---|
| 453 | $this->t->set_var('lang_sieve_server_hostname_or_ip_address',lang('Sieve server hostname or ip address')); |
---|
| 454 | $this->t->set_var('lang_sieve_server_port',lang('Sieve server port')); |
---|
| 455 | $this->t->set_var('lang_enable_cyrus_imap_administration',lang('enable Cyrus IMAP server administration')); |
---|
| 456 | $this->t->set_var('lang_cyrus_imap_administration',lang('Cyrus IMAP server administration')); |
---|
| 457 | $this->t->set_var('lang_admin_username',lang('admin username')); |
---|
| 458 | $this->t->set_var('lang_admin_password',lang('admin passwort')); |
---|
| 459 | $this->t->set_var('lang_imap_server_logintyp',lang('imap server logintyp')); |
---|
| 460 | $this->t->set_var('lang_standard',lang('standard')); |
---|
| 461 | $this->t->set_var('lang_vmailmgr',lang('Virtual MAIL ManaGeR')); |
---|
| 462 | $this->t->set_var('lang_pre_2001_c_client',lang('IMAP C-Client Version < 2001')); |
---|
[187] | 463 | $this->t->set_var('lang_default_folders', lang('Default Folders')); |
---|
| 464 | $this->t->set_var('lang_trash_folder', lang('Trash Folder')); |
---|
| 465 | $this->t->set_var('lang_sent_folder', lang('Sent Folder')); |
---|
| 466 | $this->t->set_var('lang_drafts_folder', lang('Drafts Folder')); |
---|
| 467 | $this->t->set_var('lang_spam_folder', lang('Spam Folder')); |
---|
[1523] | 468 | $this->t->set_var('lang_spam_settings', lang('spam settings')); |
---|
| 469 | $this->t->set_var('lang_create_spam_folder', lang('create spam folder')); |
---|
| 470 | $this->t->set_var('lang_cyrus_user_post_spam', lang('cyrus user post spam')); |
---|
[2] | 471 | # $this->t->set_var('',lang('')); |
---|
| 472 | |
---|
| 473 | } |
---|
| 474 | } |
---|
| 475 | ?> |
---|