1
0
mirror of https://github.com/e107inc/e107.git synced 2025-05-03 10:49:12 +02:00

Bugtracker #5101 - chrome and nokia browsers, symbian and android OSs shown in stats

This commit is contained in:
secretr 2010-10-11 20:46:16 +00:00
parent d1930fdc79
commit 3225072f65
3 changed files with 15 additions and 13 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 503 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 677 B

After

Width:  |  Height:  |  Size: 954 B

View File

@ -8,10 +8,7 @@
*
*
*
* $Source: /cvs_backup/e107_0.8/e107_plugins/log/stats.php,v $
* $Revision$
* $Date$
* $Author$
* $Id$
*/
/**
@ -596,6 +593,8 @@ class siteStats
"OpenBSD" => "openbsd",
"Unix" => "unix",
"Spiders" => "spiders",
"Android" => "android",
"Symbian" => "symbian",
);
protected $browser_map = array (
@ -660,6 +659,8 @@ class siteStats
'w3m' => "w3m",
'Webtv' => "webtv",
'Xiino' => "xiino",
'Nokia S60 OSS Browser' => "nokia",
'Nokia Browser' => "nokia",
);
@ -1391,15 +1392,16 @@ class siteStats
{
$image = "";
if(strstr($key, "Windows")) { $image = "windows.png"; }
if(strstr($key, "Mac")) { $image = "mac.png"; }
if(strstr($key, "Linux")) { $image = "linux.png"; }
if(strstr($key, "BeOS")) { $image = "beos.png"; }
if(strstr($key, "FreeBSD")) { $image = "freebsd.png"; }
if(strstr($key, "NetBSD")) { $image = "netbsd.png"; }
if(strstr($key, "Unspecified")) { $image = "unspecified.png"; }
if(strstr($key, "OpenBSD")) { $image = "openbsd.png"; }
if(strstr($key, "Unix")) { $image = "unix.png"; }
if(strstr($key, "Spiders")) { $image = "spiders.png"; }
elseif(strstr($key, "Mac")) { $image = "mac.png"; }
elseif(strstr($key, "Linux")) { $image = "linux.png"; }
elseif(strstr($key, "BeOS")) { $image = "beos.png"; }
elseif(strstr($key, "FreeBSD")) { $image = "freebsd.png"; }
elseif(strstr($key, "NetBSD")) { $image = "netbsd.png"; }
elseif(strstr($key, "Unspecified")) { $image = "unspecified.png"; }
elseif(strstr($key, "OpenBSD")) { $image = "openbsd.png"; }
elseif(strstr($key, "Unix")) { $image = "unix.png"; }
elseif(strstr($key, "Spiders")) { $image = "spiders.png"; }
elseif(stristr($key, "Android")) { $image = "android.png"; }
$percentage = round(($info/$total) * 100, 2);
$text .= "<tr>