thomascube
2010-04-01 1d773d71414316e0b9836a15c35576593427ee21
program/include/rcube_shared.inc
@@ -39,6 +39,8 @@
  header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
  header("Cache-Control: private, must-revalidate, post-check=0, pre-check=0");
  header("Pragma: no-cache");
  // Request browser to disable DNS prefetching (CVE-2010-0464)
  header("X-DNS-Prefetch-Control: off");
  
  // We need to set the following headers to make downloads work using IE in HTTPS mode.
  if (rcube_https_check()) {
@@ -606,6 +608,26 @@
/**
 * Get all keys from array (recursive)
 *
 * @param array Input array
 * @return array
 */
function array_keys_recursive($array)
{
  $keys = array();
  if (!empty($array))
    foreach ($array as $key => $child) {
      $keys[] = $key;
      if ($children = array_keys_recursive($child))
        $keys = array_merge($keys, $children);
    }
  return $keys;
}
/**
 * mbstring replacement functions
 */