Modified:
trunk/htdocs/core/V2EXCore.php
trunk/htdocs/core/ValidatorCore.php
Log:
[UI] As well as Minefield
Modified: trunk/htdocs/core/V2EXCore.php
==============================================================================
--- trunk/htdocs/core/V2EXCore.php (original)
+++ trunk/htdocs/core/V2EXCore.php Sun Nov 25 02:06:31 2007
@@ -469,6 +469,7 @@
public function vxLink($feedURL = BABEL_FEED_URL) {
echo('<link href="/favicon.ico" rel="shortcut icon" />');
echo('<link rel="stylesheet" type="text/css" href="/css/themes/' .
BABEL_THEME . '/css_babel.css?' . date('YnjG', time()) . '" />');
+ // $_SESSION['babel_ua'] = $this->Validator->vxGetUserAgent();
if ($_SESSION['babel_ua']['FF3_DETECTED']) {
echo('<style type="text/css">body, html { background: #000
url("/img/bg_city.jpg") no-repeat 50% 0; }</style>');
}
Modified: trunk/htdocs/core/ValidatorCore.php
==============================================================================
--- trunk/htdocs/core/ValidatorCore.php (original)
+++ trunk/htdocs/core/ValidatorCore.php Sun Nov 25 02:06:31 2007
@@ -806,7 +806,7 @@
* Camino Example: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O;
en-US; rv:1.8b4) Gecko/20050914 Camino/1.0a1
* Firefox Example: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O;
en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4
* Firefox Example: Mozilla/5.0 (X11; U; Linux i686; en-US;
rv:1.7.12) Gecko/20050922 Firefox/1.0.7 (Debian package 1.0.7-1) */
- if (preg_match('/Mozilla\/5\.0 \(([a-zA-Z0-9]+); U; ([0-9a-zA-Z\.\-
]+); [a-zA-Z\- ]*; rv:([0-9a-z\.]+)\) Gecko\/([0-9]+) (Camino|Firefox|
Firebird|SeaMonkey|Thunderbird|Sunbird|
Epiphany)\/([0-9]+\.[0-9a-zA-Z\.]*)/', $ua, $z)) {
+ if (preg_match('/Mozilla\/5\.0 \(([a-zA-Z0-9]+); U; ([0-9a-zA-Z\.\-
]+); [a-zA-Z\- ]*; rv:([0-9a-z\.]+)\) Gecko\/([0-9]+) (Camino|Firefox|
Firebird|Minefield|SeaMonkey|Thunderbird|Sunbird|
Epiphany)\/([0-9]+\.[0-9a-zA-Z\.]*)/', $ua, $z)) {
if ($z[1] == 'Windows' | preg_match('/X11/', $z[1])) {
$o['platform'] = $z[2];
if (preg_match('/(Linux)/', $o['platform'], $y)) {
@@ -819,7 +819,7 @@
$o['version'] = $z[6];
$o['DEVICE_LEVEL'] = 3;
$o['GECKO_DETECTED'] = 1;
- if ($o['name'] == 'Firefox') {
+ if ($o['name'] == 'Firefox' || $o['name'] == 'Minefield') {
if (preg_match('/^3\.0/', $o['version'])) {
$o['FF3_DETECTED'] = 1;
}