[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 <<
echo “
Information
“;
$tydzien = array(“Monday”=>”Poniedziałek”,”Tuesday”=>”Wtorek”,”Wednesday”=>”Środa”,”Thursday”=>”Czwartek”,”Friday”=>”Piątek”,”Saturday”=>”Sobota”,”Sunday”=>”Niedziela”);
echo “
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 | |