| | |
| | | +-----------------------------------------------------------------------+ |
| | | | program/include/main.inc | |
| | | | | |
| | | | This file is part of the RoundCube Webmail client | |
| | | | Copyright (C) 2005-2009, RoundCube Dev, - Switzerland | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2009, Roundcube Dev, - Switzerland | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | | PURPOSE: | |
| | |
| | | */ |
| | | |
| | | /** |
| | | * RoundCube Webmail common functions |
| | | * Roundcube Webmail common functions |
| | | * |
| | | * @package Core |
| | | * @author Thomas Bruederli <roundcube@gmail.com> |
| | |
| | | $d = preg_replace('/^[^\.]+\./', '', $n); |
| | | // %h - IMAP host |
| | | $h = $_SESSION['imap_host']; |
| | | // %z - IMAP domain without first part, e.g. %h=imap.domain.tld, %z=domain.tld |
| | | $z = preg_replace('/^[^\.]+\./', '', $h); |
| | | |
| | | $name = str_replace(array('%n', '%d', '%h'), array($n, $d, $h), $name); |
| | | $name = str_replace(array('%n', '%d', '%h', '%z'), array($n, $d, $h, $z), $name); |
| | | return $name; |
| | | } |
| | | |