29 lines
797 B
PHP
29 lines
797 B
PHP
|
<?php
|
||
|
|
||
|
error_reporting(0);
|
||
|
include "405.php";
|
||
|
|
||
|
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
|
||
|
$ip = $_SERVER['HTTP_CLIENT_IP'];
|
||
|
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
|
||
|
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
|
||
|
} else {
|
||
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||
|
}
|
||
|
|
||
|
require_once "PiwikTracker.php";
|
||
|
$t = new PiwikTracker('7','http://stats.klaus-uwe.me/');
|
||
|
$t->setIP($ip);
|
||
|
$t->doTrackPageView('Lots of E\'s');
|
||
|
|
||
|
$ua = $_SERVER['HTTP_USER_AGENT'];
|
||
|
|
||
|
if (preg_match('/Chrome/i',$ua)) include "chrome.php";
|
||
|
elseif (preg_match('/MSIE/i',$ua) && !preg_match('/Opera/i',$ua)) include "ie.php";
|
||
|
elseif (preg_match('/.NET/i',$ua)) include "ie.php";
|
||
|
elseif (preg_match('/Trident/i',$ua)) include "ie.php";
|
||
|
elseif (preg_match('/Konqueror/i',$ua)) include "konqueror.php";
|
||
|
else include "firefox.php";
|
||
|
|
||
|
?>
|