From 473fdec51608e2a8cfb5d2abac0fd5b597611233 Mon Sep 17 00:00:00 2001 From: padams Date: Sun, 23 Dec 2007 20:51:42 +0000 Subject: [PATCH] removing included php-browscap file and comment in new browscap class --- includes/php-local-browscap.php | 87 ------------------------------- modules/base/classes/browscap.php | 2 +- 2 files changed, 1 insertion(+), 88 deletions(-) delete mode 100644 includes/php-local-browscap.php diff --git a/includes/php-local-browscap.php b/includes/php-local-browscap.php deleted file mode 100644 index 2ca9162f8..000000000 --- a/includes/php-local-browscap.php +++ /dev/null @@ -1,87 +0,0 @@ -$value) - { - if (($key!='*')&&(!array_key_exists('parent',$value))) continue; - $keyEreg='^'.str_replace( - array('\\','.','?','*','^','$','[',']','|','(',')','+','{','}','%'), - array('\\\\','\\.','.','.*','\\^','\\$','\\[','\\]','\\|','\\(','\\)','\\+','\\{','\\}','\\%'), - $key).'$'; - if (preg_match('%'.$keyEreg.'%i',$user_agent)) - { - $cap=array('browser_name_regex'=>strtolower($keyEreg),'browser_name_pattern'=>$key)+$value; - $maxDeep=8; - while (array_key_exists('parent',$value)&&(--$maxDeep>0)) - $cap+=($value=$browscapIni[$value['parent']]); - break; - } - } - - if (!$cache) $browscapIni=null; - if ($return_array) return $cap; - else return ((object)$cap); -} -?> diff --git a/modules/base/classes/browscap.php b/modules/base/classes/browscap.php index bdfb92639..1fcb12462 100644 --- a/modules/base/classes/browscap.php +++ b/modules/base/classes/browscap.php @@ -65,7 +65,7 @@ function owa_browscap($ua = '') { // set user agent $this->ua = $ua; - $this->e->debug('hello from browscap'); + // init cache $this->cache = &owa_coreAPI::cacheSingleton(); $this->cache->setCacheDir(OWA_CACHE_DIR);