| | |
| | | header("Pragma: no-cache"); |
| | | |
| | | // We need to set the following headers to make downloads work using IE in HTTPS mode. |
| | | if (isset($_SERVER['HTTPS'])) { |
| | | if (isset($_SERVER['HTTPS']) || rcmail::get_instance()->config->get('use_https')) { |
| | | header('Pragma: '); |
| | | header('Cache-Control: '); |
| | | } |
| | |
| | | * mbstring replacement functions |
| | | */ |
| | | |
| | | if (!function_exists('mb_strlen')) { |
| | | if (!extension_loaded('mbstring')) |
| | | { |
| | | function mb_strlen($str) |
| | | { |
| | | return strlen($str); |
| | | } |
| | | } |
| | | |
| | | if (!function_exists('mb_strtolower')) { |
| | | function mb_strtolower($str) |
| | | { |
| | | return strtolower($str); |
| | | } |
| | | } |
| | | |
| | | if (!function_exists('mb_strtoupper')) { |
| | | function mb_strtoupper($str) |
| | | { |
| | | return strtoupper($str); |
| | | } |
| | | } |
| | | |
| | | if (!function_exists('mb_substr')) { |
| | | function mb_substr($str, $start, $len=null) |
| | | { |
| | | return substr($str, $start, $len); |
| | | } |
| | | } |
| | | |
| | | if (!function_exists('mb_strpos')) { |
| | | function mb_strpos($haystack, $needle, $offset=0) |
| | | { |
| | | return strpos($haystack, $needle, $offset); |
| | | } |
| | | } |
| | | |
| | | if (!function_exists('mb_strrpos')) { |
| | | function mb_strrpos($haystack, $needle, $offset=0) |
| | | { |
| | | return strrpos($haystack, $needle, $offset); |