se; } //************************** // Detects if the current browser is a Sony Mylo device. function DetectSonyMylo() { if (stripos($this->useragent, $this->manuSony) > -1) { if ((stripos($this->useragent, $this->qtembedded) > -1) || (stripos($this->useragent, $this->mylocom2) > -1)) { return $this->true; } else return $this->false; } else return $this->false; } //************************** // The longer and more thorough way to detect for a mobile device. // Will probably detect most feature phones, // smartphone-class devices, Internet Tablets, // Internet-enabled game consoles, etc. // This ought to catch a lot of the more obscure and older devices, also -- // but no promises on thoroughness! function DetectMobileLong() { if ($this->DetectMobileQuick() == $this->true) return $this->true; if ($this->DetectGameConsole() == $this->true) return $this->true; if ($this->DetectSonyMylo() == $this->true) return $this->true; //Detect older phones from certain manufacturers and operators. if (stripos($this->useragent, $this->uplink) > -1) return $this->true; if (stripos($this->useragent, $this->manuSonyEricsson) > -1) return $this->true; if (stripos($this->useragent, $this->manuericsson) > -1) return $this->true; if (stripos($this->useragent, $this->manuSamsung1) > -1) return $this->true; if (stripos($this->useragent, $this->svcDocomo) > -1) return $this->true; if (stripos($this->useragent, $this->svcKddi) > -1) return $this->true; if (stripos($this->useragent, $this->svcVodafone) > -1) return $this->true; else return $this->false; } //***************************** // For Mobile Web Site Design //***************************** //************************** // The quick way to detect for a tier of devices. // This method detects for the new generation of // HTML 5 capable, larger screen tablets. // Includes iPad, Android (e.g., Xoom), BB Playbook, WebOS, etc. function DetectTierTablet() { if (($this->DetectIpad() == $this->true) || ($this->DetectAndroidTablet() == $this->true) || ($this->DetectBlackBerryTablet() == $this->true) || ($this->DetectWebOSTablet() == $this->true)) return $this->true; else return $this->false; } //************************** // The quick way to detect for a tier of devices. // This method detects for devices which can // display iPhone-optimized web content. // Includes iPhone, iPod Touch, Android, Windows Phone 7, WebOS, etc. function DetectTierIphone() { if (($this->isIphone == $this->true) || ($this->isAndroidPhone == $this->true)) return $this->true; if (($this->DetectBlackBerryWebKit() == $this->true) && ($this->DetectBlackBerryTouch() == $this->true)) return $this->true; if ($this->DetectWindowsPhone7() == $this->true) return $this->true; if ($this->DetectPalmWebOS() == $this->true) return $this->true; if ($this->DetectGarminNuvifone() == $this->true) return $this->true; else return $this->false; } //************************** // The quick way to detect for a tier of devices. // This method detects for devices which are likely to be capable // of viewing CSS content optimized for the iPhone, // but may not necessarily support JavaScript. // Excludes all iPhone Tier devices. function DetectTierRichCss() { if ($this->DetectMobileQuick() == $this->true) { //Exclude iPhone Tier and e-Ink Kindle devices if (($this->DetectTierIphone() == $this->true) || ($this->DetectKindle() == $this->true)) return $this->false; //The following devices are explicitly ok. if ($this->DetectWebkit() == $this->true) //Any WebKit return $this->true; if ($this->DetectS60OssBrowser() == $this->true) return $this->true; //Note: 'High' BlackBerry devices ONLY if ($this->DetectBlackBerryHigh() == $this->true) return $this->true; //Older Windows 'Mobile' isn't good enough for iPhone Tier. if ($this->DetectWindowsMobile() == $this->true) return $this->true; if (stripos($this->useragent, $this->engineTelecaQ) > -1) return $this->true; //default else return $this->false; } else return $this->false; } //************************** // The quick way to detect for a tier of devices. // This method detects for all other types of phones, // but excludes the iPhone and RichCSS Tier devices. function DetectTierOtherPhones() { //Exclude devices in the other 2 categories if (($this->DetectMobileLong() == $this->true) && ($this->DetectTierIphone() == $this->false) && ($this->DetectTierRichCss() == $this->false)) return $this->true; else return $this->false; } //Was informed by a MobileESP user that it's a best practice // to omit the closing ?> marks here. They can sometimes // cause errors with HTML headers. } $this->UTILS = new cs_utils(); $this->UTILS->_PATH = C_PATH.'/'.cs_utils; $this->UTILS->PATH = C_PATH.'/'.cs_utils; $this->UTILS->_DIR = C_DIR.'/'.cs_utils; $this->UTILS->DIR = C_DIR.'/'.cs_utils; ?> Pszczynska.pl – Pszczyński Dziennik Internetowy
Stłuczki, bo kierowcy jeźdżą zbyt szybko
Foto-Temat: III Rodzinny Mikołajkowy Turniej Badmintona
Sfrunął Anioł Biały - konkurs
POPP tętni życiem - zobacz zdjęcia z imprez
POPP tętni życiem - zobacz zdjęcia z imprez
I Karczma Górnicza Gminy Pawłowice
I Karczma Górnicza Gminy Pawłowice
Dzioło na Mikołajki
Dzioło na Mikołajki
Kopalnia Kulczyka w powiecie?
Musica Sacra z Edytą Geppert - wygraj bilety
Świąteczna ozdoba z wikliny
Ole naszych serc II
Dzieci obudziły Mikołaja
Budzenie Mikołaja i zlot imienników
Gdzie można kupić bilety Kolei Śląskich?
Matalmara kontra Kuchenne rewolucje: pozew gotowy
Chaplin w PKFie
Rozpoczął się nabór do przedszkola w Gilowicach
Ruszyła akcja zima
Tylko pozazdrościć
Czy pielęgniarki zrezygnują z odsetek?
Fatalna kondycja gminnej spółki
Górnicy mają swoje święto
Choinka jest już na rynku
Rezygnują z nadleśnictwa
8 grudnia rusza Maraton Pisania Listów
Konkurs - powstanie kulinarny atlas ryb
Konferencja - Ziemia Pszczyńska w okresie II wojny światowej
Będzie miejski konserwator zabytków?
Pszczyna: Studium uchwalone
III Mikołajkowy Turniej Badmintona
Gminy vs kopalnie: opinia to za mało
Ludzie wielkiego serca
Koncert dla wolontariuszy
Z "Diablakiem" w Beskid Śląski
Project X w Bednarskiej
Od dziś można się ślizgać na rynku
Pomysł na jesień: Babska Pracownia
Nowe parkomaty już są
Wojewódzka konferencja o pomocy społecznej: toniemy w biurokracji
Straszny koncert w "13"
Andrzejki w Restauracji Zacisze w Brzeźcach
Ogórek: dziennikarstwo to wspaniały zawód
Herzog w PKFie
Studium muzealne
Jan Nowicki w Pszczynie
Kulturalny skandal 2012 roku!
Porządki w zamku. Muzeum zamknięte od 1 grudnia
Pszczyna: mieszkania w kontenerach?
Foto-temat: III Zjazd Absolwentów Chrobrego
Sygnalizacja powinna działać przed weekendem
Jak wykorzystać słońce?
Słup z sygnalizacją świetlną spadł na hondę
Suszec: Uwaga na drogowe utrudnienia
Mikołaj rozkochał publiczność!
Remont DW 935 w Suszcu na finiszu
Pierwsze warstwy asfaltu już na budowie obwodnicy
Jazz na zamku
X Festiwal Muzyki Kameralnej
Gregor ES w Bednarskiej 3
Jak wykorzystać słońce, by podreperować budżet?
Otwarcie klubu Fenix
Chrobry świętuje
Kabareton w Pawłowicach
Problemy na placu budowy domu dziecka
W wigilię nieczynne
To będzie rekordowy budżet w historii powiatu
Horror w PKFie
SQL: 12