Index: trunk/wap/hawhaw/hawhaw.inc |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | // HAWHAW: HTML and WML hybrid adapted webserver |
5 | 5 | // PHP class library |
6 | 6 | // Copyright (C) 2008 Norbert Huffschmid |
7 | | -// Last modified: 6. April 2008 |
| 7 | +// Last modified: 14. May 2008 |
8 | 8 | // |
9 | 9 | // This library is free software; you can redistribute it and/or modify it under the |
10 | 10 | // terms of the GNU Library General Public License as published by the Free Software |
— | — | @@ -21,8 +21,13 @@ |
22 | 22 | // For further information about this library and its license terms please visit: |
23 | 23 | // http://www.hawhaw.de/ |
24 | 24 | // |
25 | | -// changes against V5.17: |
26 | | -// - consider additional XHTML devices: Aspen Simulator and Android |
| 25 | +// changes against V5.18: |
| 26 | +// improved browser detection for: |
| 27 | +// - PalmOS |
| 28 | +// - Minimo |
| 29 | +// - PIE |
| 30 | +// - Blackberry |
| 31 | +// - Nintendo DS |
27 | 32 | |
28 | 33 | ################################### |
29 | 34 | # BEGIN OF CONFIGURATION PART # |
— | — | @@ -43,7 +48,7 @@ |
44 | 49 | ################################### |
45 | 50 | |
46 | 51 | // miscellaneous constants |
47 | | -define("HAW_HAW_VERSION", "HAWHAW V5.18B"); |
| 52 | +define("HAW_HAW_VERSION", "HAWHAW V5.19B"); |
48 | 53 | define("HAW_COPYRIGHT", "(C) Norbert Huffschmid"); |
49 | 54 | if (defined("HAW_TERA_WURFL_PATH")) |
50 | 55 | define("HAW_VERSION", HAW_HAW_VERSION . "/Tera-WURFL"); |
— | — | @@ -2353,6 +2358,7 @@ |
2354 | 2359 | strstr($ua_low, "lynx") || |
2355 | 2360 | strstr($ua_low, "avantgo") || |
2356 | 2361 | strstr($ua_low, "pendragonweb") || |
| 2362 | + strstr($ua_low, "blackberry") || |
2357 | 2363 | strstr($ua_low, "j-")) |
2358 | 2364 | $this->ml = HAW_HTML; // HTML-based browser |
2359 | 2365 | else |
— | — | @@ -2393,8 +2399,15 @@ |
2394 | 2400 | strstr($ua_low, "reqwirelessweb") || |
2395 | 2401 | strstr($ua_low, "pendragonweb") || |
2396 | 2402 | strstr($ua_low, "palmos") || |
| 2403 | + strstr($ua_low, "palmsource") || |
| 2404 | + strstr($ua_low, "/palm") || |
2397 | 2405 | strstr($ua_low, "windows ce") || |
2398 | | - strstr(strtolower($HTTP_UA_OS), "windows ce") || |
| 2406 | + strstr($ua_low, "minimo") || |
| 2407 | + strstr($ua_low, "wm5 pie") || |
| 2408 | + strstr($ua_low, "wm6 pie") || |
| 2409 | + strstr($ua_low, "blackberry") || |
| 2410 | + strstr($ua_low, "nitro)") || |
| 2411 | + strstr(strtolower($HTTP_UA_OS), "windows ce") || |
2399 | 2412 | strstr($HTTP_USER_AGENT, "Mozilla/4.7")) |
2400 | 2413 | { |
2401 | 2414 | // PDA browser detected (or poor old Netscape 4.7x which messes with CSS) |