- Timestamp:
- 2010/11/06 20:58:35 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camp/camp-2_5-E/data/class/SC_Display.php
r19020 r19021 53 53 if($nu->isMobile()){ 54 54 $retDevice = 1; 55 }elseif () 55 }elseif ($this->isSmartphone()){ 56 }else{ 56 57 if($this->autoSet){ 57 58 $this->setDevice($nu); … … 78 79 79 80 $pattern = implode("|", $useragents); 80 81 if(preg_match('/['.$pattern.']/', $_SERVER['HTTP_USER_AGENT'])) 82 var pattern = new RegExp(useragents.join('|'), 'i'); 83 return pattern.test(navigator.userAgent); 81 return preg_match('/['.$pattern.']/', $_SERVER['HTTP_USER_AGENT']); 82 84 83 } 85 84
Note: See TracChangeset
for help on using the changeset viewer.
