improved caches list in user profile; updates 88

This commit is contained in:
following
2013-06-16 21:24:07 +02:00
parent ac62e0dac4
commit 7fa0c5c25c
8 changed files with 108 additions and 64 deletions

View File

@ -32,6 +32,12 @@ function __autoload($class_name)
}
// check for broken browsers
$useragent = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : "";
$useragent_msie = preg_match('/MSIE ([1-9]+).[0-9]+/',$useragent,$ua_matches) && !strpos($useragent,"Opera");
if (count($ua_matches)>1) $useragent_msie_version = $ua_matches[1];
else $useragent_msie_version = null;
// yepp, we will use UTF-8
mb_internal_encoding('UTF-8');
mb_regex_encoding('UTF-8');