>false; } //************************** // Detects if the current browser is based on WebKit. function DetectWebkit() { if (stripos($this->useragent, $this->engineWebKit) > -1) return $this->true; else return $this->false; } //************************** // Detects if the current browser is the Nokia S60 Open Source Browser. function DetectS60OssBrowser() { //First, test for WebKit, then make sure it's either Symbian or S60. if ($this->DetectWebkit() == $this->true) { if (stripos($this->useragent, $this->deviceSymbian) > -1 || stripos($this->useragent, $this->deviceS60) > -1) { return $this->true; } else return $this->false; } else return $this->false; } //************************** // Detects if the current device is any Symbian OS-based device, // including older S60, Series 70, Series 80, Series 90, and UIQ, // or other browsers running on these devices. function DetectSymbianOS() { if (stripos($this->useragent, $this->deviceSymbian) > -1 || stripos($this->useragent, $this->deviceS60) > -1 || stripos($this->useragent, $this->deviceS70) > -1 || stripos($this->useragent, $this->deviceS80) > -1 || stripos($this->useragent, $this->deviceS90) > -1) return $this->true; else return $this->false; } //************************** // Detects if the current browser is a // Windows Phone 7 device. function DetectWindowsPhone7() { if (stripos($this->useragent, $this->deviceWinPhone7) > -1) return $this->true; else return $this->false; } //************************** // Detects if the current browser is a Windows Mobile device. // Excludes Windows Phone 7 devices. // Focuses on Windows Mobile 6.xx and earlier. function DetectWindowsMobile() { if ($this->DetectWindowsPhone7() == $this->true) return $this->false; //Most devices use 'Windows CE', but some report 'iemobile' // and some older ones report as 'PIE' for Pocket IE. if (stripos($this->useragent, $this->deviceWinMob) > -1 || stripos($this->useragent, $this->deviceIeMob) > -1 || stripos($this->useragent, $this->enginePie) > -1) return $this->true; //Test for Windows Mobile PPC but not old Macintosh PowerPC. if (stripos($this->useragent, $this->devicePpc) > -1 && !(stripos($this->useragent, $this->deviceMacPpc) > 1)) return $this->true; //Test for certain Windwos Mobile-based HTC devices. if (stripos($this->useragent, $this->manuHtc) > -1 && stripos($this->useragent, $this->deviceWindows) > -1) return $this->true; if ($this->DetectWapWml() == $this->true && stripos($this->useragent, $this->deviceWindows) > -1) return $this->true; else return $this->false; } //************************** // Detects if the current browser is any BlackBerry device. // Includes the PlayBook. function DetectBlackBerry() { if ((stripos($this->useragent, $this->deviceBB) > -1) || (stripos($this->httpaccept, $this->vndRIM) > -1)) return $this->true; else return $this->false; } //************************** // Detects if the current browser is on a BlackBerry tablet device. // Examples: PlayBook function DetectBlackBerryTablet() { if ((stripos($this->useragent, $this->deviceBBPlaybook) > -1)) return $this->true; else return $this->false; } //************************** // Detects if the current browser is a BlackBerry phone device AND uses a // WebKit-based browser. These are signatures for the new BlackBerry OS 6. // Examples: Torch. Includes the Playbook. function DetectBlackBerryWebKit() { if (($this->DetectBlackBerry() == $this->true) && ($this->DetectWebkit() == $this->true)) return $this->true; else return $this->false; } //************************** // Detects if the current browser is a BlackBerry Touch phone device with // a large screen, such as the Storm, Torch, and Bold Touch. Excludes the Playbook. function DetectBlackBerryTouch() { if ((stripos($this->useragent, $this->deviceBBStorm) > -1) || (stripos($this->useragent, $this->deviceBBTorch) > -1) || (stripos($this->useragent, $this->deviceBBBoldTouch) > -1) || (stripos($this->useragent, $this->deviceBBCurveTouch) > -1)) return $this->true; else return $this->false; } //************************** // Detects if the current browser is a BlackBerry OS 5 device AND // has a more capable recent browser. Excludes the Playbook. // Examples, Storm, Bold, Tour, Curve2 // Excludes the new BlackBerry OS 6 and 7 browser!! function DetectBlackBerryHigh() { //Disambiguate for BlackBerry OS 6 or 7 (WebKit) browser if ($this->DetectBlackBerryWebKit() == $this->true) return $this->false; if ($this->DetectBlackBerry() == $this->true) { if (($this->DetectBlackBerryTouch() == $this->true) || stripos($this->useragent, $this->deviceBBBold) > -1 || stripos($this->useragent, $this->deviceBBTour) > -1 || stripos($this->useragent, $this->deviceBBCurve) > -1) { return $this->true; } else return $this->false; } else return $this->false; } //************************** // Detects if the current browser is a BlackBerry device AND // has an older, less capable browser. // Examples: Pearl, 8800, Curve1. function DetectBlackBerryLow() { if ($this->DetectBlackBerry() == $this->true) { //Assume that if it's not in the High tier, then it's Low. if (($this->DetectBlackBerryHigh() == $this->true) || ($this->DetectBlackBerryWebKit() == $this->true)) return $this->false; else return $this->true; } else return $this->false; } //************************** // Detects if the current browser is on a PalmOS device. function DetectPalmOS() { //Most devices nowadays report as 'Palm', but some older ones reported as Blazer or Xiino. if (stripos($this->useragent, $this->devicePalm) > -1 || stripos($this->useragent, $this->engineBlazer) > -1 || stripos($this->useragent, $this->engineXiino) > -1) { //Make sure it's not WebOS first if ($this->DetectPalmWebOS() == $this->true) return $this->false; else return $this->true; } else return $this->false; } //************************** // Detects if the current browser is on a Palm device // running the new WebOS. function DetectPalmWebOS() { if (stripos($this->useragent, $this->deviceWebOS) > -1) return $this->true; else return $this->false; } //************************** // Detects if the current browser is on an HP tablet running WebOS. function DetectWebOSTablet() { if ((stripos($this->useragent, $this->deviceWebOShp) > -1) && (stripos($this->useragent, $this->deviceTablet) > -1)) return $this->true; else return $this->false; } //************************** // Detects if the current browser is a // Garmin Nuvifone. function DetectGarminNuvifone() { if (stripos($this->useragent, $this->deviceNuvifone) > -1) return $this->true; else return $this->false; } //************************** // Check to see whether the device is any device // in the 'smartphone' category. function DetectSmartphone() { global $isIphone, $isAndroidPhone, $isTierIphone; if (($this->isIphone == $this->true) || ($this->isAndroidPhone == $this->true) || ($this->isTierIphone == $this->true) || ($this->DetectS60OssBrowser() == $this->true) || ($this->DetectSymbianOS() == $this->true) || ($this->DetectWindowsMobile() == $this->true) || ($this->DetectWindowsPhone7() == $this->true) || ($this->DetectBlackBerry() == $this->true) || ($this->DetectPalmWebOS() == $this->true) || ($this->DetectPalmOS() == $this->true) || ($this->DetectGarminNuvifone() == $this->true)) return $this->true; else return $this->false; } //************************** // Detects whether the device is a Brew-powered device. function DetectBrewDevice() { if (stripos($this->useragent, $this->deviceBrew) > -1) return $this->true; else return $this->false; } //************************** // Detects the Danger Hiptop device. function DetectDangerHiptop() { if (stripos($this->useragent, $this->deviceDanger) > -1 || stripos($this->useragent, $this->deviceHiptop) > -1) return $this->true; else return $this->false; } //************************** // Detects if the current browser is Opera Mobile or Mini. function DetectOperaMobile() { if (stripos($this->useragent, $this->engineOpera) > -1) { if ((stripos($this->useragent, $this->mini) > -1) || (stripos($this->useragent, $this->mobi) > -1)) return $this->true; else return $this->false; } else return $this->false; } //************************** // Detects if the current browser is Opera Mobile // running on an Android phone. function DetectOperaAndroidPhone() { if ((stripos($this->useragent, $this->engineOpera) > -1) && (stripos($this->useragent, $this->deviceAndroid) > -1) && (stripos($this->useragent, $this->mobi) > -1)) return $this->true; else return $this->false; } //************************** // Detects if the current browser is Opera Mobile // running on an Android tablet. function DetectOperaAndroidTablet() { if ((stripos($this->useragent, $this->engineOpera) > -1) && (stripos($this->useragent, $this->deviceAndroid) > -1) && (stripos($this->useragent, $this->deviceTablet) > -1)) return $this->true; else return $this->false; } //************************** // Detects whether the device supports WAP or WML. function DetectWapWml() { if (stripos($this->httpaccept, $this->vndwap) > -1 || stripos($this->httpaccept, $this->wml) > -1) return $this->true; else return $this->false; } //************************** // Detects if the current device is an Amazon Kindle (eInk devices only). // Note: For the Kindle Fire, use the normal Android methods. function DetectKindle() { if (stripos($this->useragent, $this->deviceKindle) > -1 && $this->DetectAndroid() == $this->false) return $this->true; else return $this->false; } //************************** // Detects if the current Amazon device is using the Silk Browser. // Note: Typically used by the the Kindle Fire. function DetectAmazonSilk() { if (stripos($this->useragent, $this->engineSilk) > -1) return $this->true; else return $this->false; } //************************** // The quick way to detect for a mobile device. // Will probably detect most recent/current mid-tier Feature Phones // as well as smartphone-class devices. Excludes Apple iPads and other modern tablets. function DetectMobileQuick() { //Let's exclude tablets if ($this-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
Trwa montaż lodowiska
40. rocznica podpisania Porozumienia Jastrzębskiego
Bezpłatne konsultacje dla przedsiębiorców
„Zielone płuca Poligonu - strefa świeżego powietrza”
„Zielone płuca Poligonu - strefa świeżego powietrza”
Sytuacja epidemiologiczna w powiecie
Sytuacja epidemiologiczna w powiecie
Powiat zachęca do skorzystania z bezpłatnych porad prawnych
Powiat zachęca do skorzystania z bezpłatnych porad prawnych
W pszczyńskim parku powstała ścieżka edukacyjna
Trwa przebudowa chodnika wzdłuż ul. Jagiełły
Maseczki i namiot dla szpitala
Mieszkańcy Krzyżowic mają nowy chodnik
Zasłużeni dla gminy Pawłowice 2020
Naprawiono jezdnię na ul. Bielskiej
Kolejne gminy rozważają przystąpienie do spółki prowadzącej szpital
Urząd uruchomił nowy serwis - czujniki.pszczyna.pl
102. rocznica odzyskania niepodległości
Zmiana terminu odbioru odpadów
Od czwartku remont skrzyżowania w Miedźnej
11 listopada: Msza św. w intencji Ojczyzny
Bezkolizyjny węzeł na DK1: Apel do posłów i senatorów o podjęcie działań
Wyremontowano elewację łąckiego kościoła
Przejazd kolejowy na ul. Męczenników Oświęcimskich zamknięty do odwołania
Most i rondo w budowie
Chryzantemy dla mieszkańców powiatu
Informacja Zespołu ds. Orzekania o Niepełnosprawności
Osocze ozdrowieńców może uratować czyjeś życie!
Nowe oświetlenie na Sybiraków, Studzienickiej oraz boisku w Wiśle Małej
Grand Prix Ziemi Pszczyńskiej w badmintonie
Pomoc bezdomnym w okresie zimowym
Zakończyła się budowa centrum przesiadkowego w Goczałkowicach
Coraz więcej chorych w szpitalach
Droga technologiczna w Pszczynie z nową nawierzchnią
Chodnik na osiedlu Stara Wieś gotowy
Upływa czas na wymianę starego kotła!

Nowe kroki w walce z koronawirusem

Wprowadzono kolejne zasady bezpieczeństwa. Od 9 listopada klasy 1-3 szkół podstawowych przejdą na naukę zdalną. Wszyscy uczniowie i studenci będą uczyć się w domu do 29 listopada. Od najbliższej soboty placówki kultury, m.in. kina i muzea będą niedostępne dla publiczności. Zmniejszony zostanie także limit osób przebywających w sklepach oraz kościołach. Co jeszcze się zmieni?
OPS Pszczyna wspiera seniorów
Pszczyńskie żubry wyjechały do Hiszpanii
Poszukiwani wolontariusze do pracy w domach pomocy społecznej
Bez zmian w obsłudze klientów starostwa
Kulisz Trio na koncercie „Wolność”
Władze powiatu zaapelowały do ministra o pomoc dla Maciusia i Filipka
Szpital zwolniony z podatku
Od stycznia zmiany w odbiorze odpadów w Goczałkowicach
Kopalnia wybuduje nowy budynek strażnicy
Powiat zakupił chryzantemy od lokalnych przedsiębiorców
Nabór wolontariuszy do 29. finału WOŚP
STOP SMOG: Środa ostatnim dniem naboru
Pawłowice zajęły 20. miejsce w ogólnopolskim XVI Rankingu Samorządów
Ulica Lercha w przebudowie, Doświadczalna gotowa
Szkolna stołówka zostanie zmodernizowana
4. Bieg „Śladami Żubra”
Wideokonferencja w sprawie czystego powietrza
Listopadowa kwesta online
Poznaj księżną Daisy
Ponad 800 aktywnych potwierdzonych zakażeń w powiecie
Remont szkoły w Warszowicach dobiega końca
Rzeźbiarska instalacja Michała Batkiewicza na pszczyńskim rynku
Kolejne wsparcie dla dzieci z domu dziecka i pieczy zastępczej
Zmiany w organizacji pracy biblioteki w Pszczynie
Zakończyły się odbiory robót w pawłowickim przedszkolu
Środki ochrony i dezynfekcyjne dla pszczyńskich przychodni
Gmina Pszczyna przekazała działkę pod budowę drogi
Trzy żubry uciekły z zagrody w Jankowicach
Stary Dworzec w finałowej dziesiątce konkursu "Dworzec Roku"
II edycja projektu „Działamy razem - by niemożliwe stało się możliwym!”
Zimowe pory kamienia w Pokazowej Zagrodzie Żubrów
SQL: 12