Changeset d359dcb in github
- Timestamp:
- Jul 26, 2012 10:54:12 AM (10 months ago)
- Children:
- 6d12536
- Parents:
- 5bc1233
- Files:
-
- 2 edited
-
config/main.inc.php.dist (modified) (5 diffs)
-
program/include/rcube_utils.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
config/main.inc.php.dist
rb1f30d8 rd359dcb 69 69 // To use SSL/TLS connection, enter hostname with prefix ssl:// or tls:// 70 70 // Supported replacement variables: 71 // %n - http hostname ($_SERVER['SERVER_NAME']) 72 // %d - domain (http hostname without the first part) 71 // %n - hostname ($_SERVER['SERVER_NAME']) 72 // %t - hostname without the first part 73 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) 73 74 // %s - domain name after the '@' from e-mail address provided at login screen 74 // For example %n = mail.domain.tld, % d= domain.tld75 // For example %n = mail.domain.tld, %t = domain.tld 75 76 $rcmail_config['default_host'] = ''; 76 77 … … 136 137 // Supported replacement variables: 137 138 // %h - user's IMAP hostname 138 // %n - http hostname ($_SERVER['SERVER_NAME']) 139 // %d - domain (http hostname without the first part) 139 // %n - hostname ($_SERVER['SERVER_NAME']) 140 // %t - hostname without the first part 141 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) 140 142 // %z - IMAP domain (IMAP hostname without the first part) 141 // For example %n = mail.domain.tld, % d= domain.tld143 // For example %n = mail.domain.tld, %t = domain.tld 142 144 $rcmail_config['smtp_server'] = ''; 143 145 … … 268 270 // Supported replacement variables: 269 271 // %h - user's IMAP hostname 270 // %n - http hostname ($_SERVER['SERVER_NAME']) 271 // %d - domain (http hostname without the first part) 272 // %n - hostname ($_SERVER['SERVER_NAME']) 273 // %t - hostname without the first part 274 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) 272 275 // %z - IMAP domain (IMAP hostname without the first part) 273 // For example %n = mail.domain.tld, % d= domain.tld276 // For example %n = mail.domain.tld, %t = domain.tld 274 277 $rcmail_config['username_domain'] = ''; 275 278 … … 281 284 // %d - domain (http hostname without the first part) 282 285 // %z - IMAP domain (IMAP hostname without the first part) 283 // For example %n = mail.domain.tld, % d= domain.tld286 // For example %n = mail.domain.tld, %t = domain.tld 284 287 $rcmail_config['mail_domain'] = ''; 285 288 … … 533 536 // Replacement variables supported in host names: 534 537 // %h - user's IMAP hostname 535 // %n - http hostname ($_SERVER['SERVER_NAME']) 536 // %d - domain (http hostname without the first part) 538 // %n - hostname ($_SERVER['SERVER_NAME']) 539 // %t - hostname without the first part 540 // %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part) 537 541 // %z - IMAP domain (IMAP hostname without the first part) 538 // For example %n = mail.domain.tld, % d= domain.tld542 // For example %n = mail.domain.tld, %t = domain.tld 539 543 'hosts' => array('directory.verisign.com'), 540 544 'port' => 389, -
program/include/rcube_utils.php
r09e5fc9 rd359dcb 617 617 // %n - host 618 618 $n = preg_replace('/:\d+$/', '', $_SERVER['SERVER_NAME']); 619 // %d - domain name without first part, e.g. %n=mail.domain.tld, %d=domain.tld 620 $d = preg_replace('/^[^\.]+\./', '', $n); 619 // %t - host name without first part, e.g. %n=mail.domain.tld, %t=domain.tld 620 $t = preg_replace('/^[^\.]+\./', '', $n); 621 // %d - domain name without first part 622 $d = preg_replace('/^[^\.]+\./', '', $_SERVER['HTTP_HOST']); 621 623 // %h - IMAP host 622 624 $h = $_SESSION['storage_host'] ? $_SESSION['storage_host'] : $host; … … 633 635 } 634 636 635 $name = str_replace(array('%n', '% d', '%h', '%z', '%s'), array($n, $d, $h, $z, $s[2]), $name);637 $name = str_replace(array('%n', '%t', '%d', '%h', '%z', '%s'), array($n, $t, $d, $h, $z, $s[2]), $name); 636 638 return $name; 637 639 }
Note: See TracChangeset
for help on using the changeset viewer.
