thomascube
2008-12-24 230f944bf62f141f47c021dbfe6cc3d07b74a76d
program/include/rcube_shared.inc
@@ -37,7 +37,7 @@
  header("Expires: ".gmdate("D, d M Y H:i:s")." GMT");
  header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
  header("Cache-Control: private, no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
  header("Cache-Control: private, must-revalidate, post-check=0, pre-check=0");
  header("Pragma: no-cache");
  
  // We need to set the following headers to make downloads work using IE in HTTPS mode.
@@ -179,7 +179,7 @@
      return $brackets{0} . implode(',', $pairs) . $brackets{1};
    }
  }
  else if (is_numeric($var) && strval(intval($var)) === strval($var))
  else if (!is_string($var) && strval(intval($var)) === strval($var))
    return $var;
  else if (is_bool($var))
    return $var ? '1' : '0';
@@ -362,6 +362,17 @@
}
/**
 * Wrapper function for strtoupper
 */
function rc_strtoupper($str)
{
  if (function_exists('mb_strtoupper'))
    return mb_strtoupper($str);
  else
    return strtoupper($str);
}
/**
 * Wrapper function for substr
 */
function rc_substr($str, $start, $len=null)