Information about You.

[insert_php]
$gent = $_SERVER[‘HTTP_USER_AGENT’];
$nazywa = get_browser_name();
$window = “”;
if (preg_match(“/win32/i”,$gent)) $sys = “Windows”;
if (preg_match(“/windows nt 5.0/i”,$gent)) $sys = “Windows 2000”;
if (preg_match(“/windows nt 5.1/i”,$gent)) $sys = “Windows XP”;
if (preg_match(“/windows nt 6.0/i”,$gent)) $sys = “Windows Vista or 2008 Server”;
if (preg_match(“/windows nt 6.1/i”,$gent)) $sys = “Windows 2008R2 Server”;
if (preg_match(“/windows nt 6.2/i”,$gent)) $sys = “Windows 7”;
if (preg_match(“/windows nt 6.3/i”,$gent)) $sys = “Windows 8 or 2012 Server”;
if ($sys == “Windows XP” or $sys == “Windows 2000”)
{
echo “You use $sys system. Please consider upgrade Your OS, cause $sys is no longer supported or soon will lost support. It could be true dangerous. “;
}
echo “

“;
echo “Your browser is “.$nazywa.”.”;
if (is_tablet()) { echo “You use tablet.”;};
if (is_mobile()) { echo “You use mobile phone. Some functionality can be reduced.”;};
if (is_ipad()) { echo “You use mobile phone. Some functionality can be reduced.”;};
if (is_ipad()) { echo “You use iPAD device.”;};
if (is_ipod()) { echo “You use iPOD device. Some functionality can be reduced.”;};

if (is_firefox() && get_browser_version() <= 19) { echo " You use old version of Firefox: “.get_browser_version().” , please upgrade to latest version (security issues!)“; };
if (is_ie() && get_browser_version() <= 9) { echo " !!! You use old version of Internet Explorer – “.get_browser_version().”. It is dangerous! – please upgrade as soon as possible!“; };
if (is_ie() && get_browser_version() < 10) { echo " For IE older than this info could not be properly displayed. Upgrade your browser.“; };
if (is_safari() && get_browser_version() <= 4) { echo " You user old version of Safari. Please upgrade “; }
echo << END;
echo “

Information

“;
$tydzien = array(“Monday”=>”Poniedziałek”,”Tuesday”=>”Wtorek”,”Wednesday”=>”Środa”,”Thursday”=>”Czwartek”,”Friday”=>”Piątek”,”Saturday”=>”Sobota”,”Sunday”=>”Niedziela”);
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo “

“;
echo << document.write(“

“);

Server time (during connection): “.date(‘G:i:s – e’).” Client time (online):
Server date: “.date(‘l’).”
“.date(‘j. m. Y’).”
Timestamp (download): “.time().”
Screen resolution available: ” + screen.availWidth + ” x ” + screen.availHeight + “ Window size

END;
$useragent = $_SERVER[‘HTTP_USER_AGENT’];
$adres = $_SERVER[‘REMOTE_ADDR’];
$host = $_SERVER[‘REMOTE_HOST’];
$port = $_SERVER[‘REMOTE_PORT’];
echo “

“;
echo “

Connection info:

“;
echo “

“;
echo “

“;
echo “Client host name:
“.$host.” Client IP address (public): “.$adres.”

“;
$infor = get_browser();
echo “

Client browser info

“;
echo “

Browser / system (user agent string): “.$useragent.”

“;
echo “Attention! Information about connection is based on tcp analysis, it can be different or unknown due to protection systems, NAT or masking either filtering“;
echo “

“;
echo “

“;
$versio = $infor->version;
if ($versio == “0.0”) $versio = “Not known, not set”;
echo “

“;
echo “

“;
echo “

“;
echo “

System: “.$infor->platform.” Browser: “.$infor->browser.” Version: “.$versio.”
Rendering engine: “.$infor->renderingengine_name.” Rendering engine description: “.$infor->renderingengine_description.”

“;
[/insert_php]