< >

was_weis_ic_ueber_dich.php


Quell Code


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Browser und Systeminfo pjunk.de</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="language" content="de">
<meta name="description" content="Info zu Browser und System, eigene IP Adresse, Downloadgeschwindigkeit, Flash Version,Timer Resulution">
<meta name="keywords" lang="de" content="Browserinfo, DF&Uuml; Speed,IP Adresse">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta name="author" content="Peter Junk">
<meta name="date" content="2012-03-18">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<script src="swfobject22.js" type="text/javascript"></script>
<script language="javascript1.1">js_version=1.1</script>
<script language="javascript1.2">js_version=1.2</script>
<script language="javascript1.3">js_version=1.3</script>
<script language="javascript1.4">js_version=1.4</script>
<script language="javascript1.5">js_version=1.5</script>
<script language="javascript1.6">js_version=1.6</script>
<script language="javascript1.7">js_version=1.7</script>
<script language="javascript1.8">js_version=1.8</script>
<script language="javascript1.9">js_version=1.9</script>
<script language="javascript2.0">js_version=2.0</script>
<script language="javascript2.1">js_version=2.1</script>
<script type="text/javascript">
  var h;
  var x = new Date();
  var kbimg = 25;
  var t1;
  var tres;
  var tdiff = 0;
  var tact;
  var tgzyk = 5;
  var tzyk = 50; //Anzahl Messzyklen Timerauflösung
  function tresulution() {
    if(trcount == 1) t1=new Date();
    if(trcount <= tzyk) ++trcount;
    else {
    var t2=new Date();
    window.clearInterval(tact);
    var trdiff = (t2.getTime() - t1.getTime())/tzyk ;
    var tf = Math.abs(trdiff - tdiff);
    if(tf > 1 && --tgzyk > 0 ) window.setTimeout("evtimer1()",300);
    var stex = trdiff.toFixed(0) + " ms";
    if(tdiff > 0 && tf >= 1) stex += "(+- " + tf.toFixed(0) + ")";
    tdiff = trdiff;
    tres.innerHTML = stex; }
  }
  function evtimer1(){
  trcount = 0;
  tact = window.setInterval("tresulution()",2);
  }

  function cal() {
    var y = new Date();
    var diff = y.getTime() - x.getTime() ;
    //if (diff < 200) window.location="binfo2.html";
    var e_dfue = document.getElementById("dfue");
    if (diff > 0) {
    var dfu = ((kbimg + 6) * 8000)/diff;
    var cache = (dfu > 16000) ? " (Cache?)" : " (" + (kbimg + 6) + " kByte in " + diff + "ms)";
    var tdfu = dfu.toFixed(0) ;
    e_dfue.innerHTML =  tdfu + " KBit /s " + cache ;  }
    else {
    if (e_dfue) e_dfue.innerHTML = "KBit /s nicht ermittelbar";}

    var mf = "";
    if (document.all) {
    h = document.documentElement.clientHeight;
    mf = document.body.offsetWidth + " x " + h + " Pixel"; }
    else { mf = window.innerWidth + " x " + window.innerHeight + " Pixel" }
    document.getElementById("fenster").innerHTML = mf;

    tres = document.getElementById("tres");
    tres.innerHTML = "Timer Auflösung ermitteln.";
    window.setTimeout("evtimer1()",500);
}
function DateForm (DateObject) {
  var tVal = DateObject.getDate();
  var s = ((tVal < 10) ? "0" : "") + tVal;
  tVal = DateObject.getMonth() +1;
  s += ((tVal < 10) ? ".0" : ".") + tVal;
  s += "." + DateObject.getFullYear();
  tVal = DateObject.getHours();
  s += ((tVal < 10) ? " 0" : " ") + tVal;
  tVal = DateObject.getMinutes();
  s += ((tVal < 10) ? ":0" : ":") + tVal;
  tVal = DateObject.getSeconds();
  s += ((tVal < 10) ? ":0" : ":") + tVal;
  return s;
}
function BrowserName() {
    var bname = "";
    var n,v,t,ua = navigator.userAgent;
    var names={i:'Internet Explorer',f:'Firefox',o:'Opera',s:'Safari',n:'Netscape', c:"Chrome", x:"Other"};
    if (/MSIE (\d+\.\d+);/.test(ua)) n="i";
    else if (/Arora.(\d+\.\d+)/.test(ua)) n="x";
    else if (/Chrome.(\d+\.\d+)/.test(ua)) n="c";
    else if (/Firefox.(\d+\.\d+)/.test(ua)) n="f";
    else if (/Version.(\d+.\d+).{0,10}Safari/.test(ua)) n="s";
    else if (/Safari.(\d+)/.test(ua)) n="so";
    else if (/Opera.*Version.(\d+\.\d+)/.test(ua)) n="o";
    else if (/Opera.(\d+\.\d+)/.test(ua)) n="o";
    else if (/Netscape.(\d+)/.test(ua)) n="n";
    else n="?";
    if (n != "?") v=new Number(RegExp.$1);
     {
    if (n=="so") {
        v=((v<100) && 1.0) || ((v<130) && 1.2) || ((v<320) && 1.3) || ((v<520) && 2.0) || ((v<524) && 3.0) || ((v<526) && 3.2) ||4.0;
        n="s";
      }
      if (n=="i" && v<8 && window.XDomainRequest) {
        bname = " (Komp.Modus IE" + v +")"
        v=8;
      }
      bname = names[n] + " " + v + bname;
    }
    return bname;
}
function isMESZ(d){
//d: datum als String, "" für das aktuelle Datum/Zeit oder Date-Object
var df = typeof(d)=="object" ? d : d=="" ? new Date() : new Date(d);
return (df.getTimezoneOffset()-(new Date("2000/1/1")).getTimezoneOffset() != 0);
}
</script>
<style type="text/css">
  body {
    font: normal 100.01% Helvetica, Arial, sans-serif;
    color: black; background-color: #FFFFC0;
    margin: 0 ;
  }
  .bi {width: 50.3em; font:bold 0.8em Arial; padding:0; margin: 1em; border:0px solid #9F9F9F;}
  .sc {font:bold 1.8em Arial; text-align: center; color: #0055C9; background-color: #D8F0F8; padding:0.3em;}
  .sh {width:150px; color: #FFFFFF; background-color: #2F2F2F;padding:0.2em; text-align: center; margin: 0 ;}
  .sh2 {color: #FFFFFF; background-color: #2F2F2F;padding:0.2em; text-align: center; margin: 0 ; }
  .s1 {width:150px;;color: #FFFFFF; background-color: #4F4F4F;text-align: center;padding:0.2em; }
  .s2 {color: #0000FF; ;text-align: center; border:1px solid #6F6F6F;padding:0.2em; }
  .s2b {color: #0000FF; ;text-align: center; border:1px solid #6F6F6F;padding:0;margin:0; }
  #imgbr {margin:0;padding:0; }
  #browser {display:inline; line-height:26px;vertical-align:top; padding:0 0 0 5px;}
</style>
<script type="text/javascript">
var x2 = new Date();
var diffc = x2.getTime() - x.getTime();
if(diffc < 200) kbimg = 100;
if((diffc < 40) && (diffc > 1)) kbimg = 200;
var imgname = "r" + Math.random();
imgname = "b" + kbimg + "k.jpg?" + imgname.substr(3,6);
</script>
<!-- CSS_ADSBLOCK_START -->
<link rel="stylesheet" href="http://adblockers.opera-mini.net/css_block/default-domainless.css" type="text/css" />
<!-- CSS_ADSBLOCK_END -->
</head>
<body onload="cal()">
<table class="bi">
<tr>
<td colspan="2" class="sc">Browser- und Systemspy</td></tr>
<tr><th class="sh">Eigenschaft</th><th class="sh2">Wert</th></tr>

<tr><td class="s1">Browser</td>
<td class="s2b">
<img id="imgbr" src="other.gif" width="26" height="26" border="0" alt="">
<div id="browser">
<script type="text/javascript">
var brname = BrowserName();
var br1 = brname.substr(0,2);
var img1 = document.getElementById("imgbr");
if(br1 == "In") img1.src = "http://pjunk.de/webtools/ie.gif";
if(br1 == "Fi") img1.src = "http://pjunk.de/webtools/firefox.gif";
if(br1 == "Ch") img1.src = "http://pjunk.de/webtools/chrome.gif";
if(br1 == "Op") img1.src = "http://pjunk.de/webtools/opera.gif";
if(br1 == "Sa") img1.src = "http://pjunk.de/webtools/safari.gif";
document.writeln(brname);
</script> 
<noscript>aktivieren von JavaScript im Browser notwendig!</noscript>
</div>
</td></tr>

<tr><td class="s1">App.Name / System</td>
<td class="s2"><script type="text/javascript">document.writeln(navigator.appName + " / " + navigator.platform);</script>
<noscript>aktivieren von JavaScript im Browser notwendig!</noscript>
</td></tr>

<tr><td class="s1">Browserversion</td>
<td class="s2"><script type="text/javascript">document.writeln(navigator.appVersion);</script></td></tr>

<tr><td class="s1">UserAgent</td>
<td class="s2"><script type="text/javascript">document.writeln(navigator.userAgent);</script></td></tr>


<tr><td class="s1" title="HTTP_ACCEPT_LANGUAGE">Sprachen</td><td class="s2">de-DE,de;q=0.9,en-US;q=0.8,en;q=0.7</td></tr>
<tr><td class="s1">Javascript</td>
<td class="s2"><script type="text/javascript">document.writeln("Aktiv" + (js_version ? ", Version "+js_version : ""));</script>
<noscript>deaktiviert</noscript>
</td></tr>

<tr><td class="s1">Java</td>
<td class="s2"><script type="text/javascript">document.writeln(navigator. javaEnabled() ? "Java verfügbar" : "Java nicht verfügbar");</script>
<noscript>nicht ermittelbar</noscript>
</td></tr>

<tr><td class="s1">Cookies</td>
<td class="s2"><script type="text/javascript">
if (navigator.cookieEnabled == true) {
  document.write("Cookies erlaubt");
} else if (navigator.cookieEnabled == false) {
  document.write("Cookies verboten");
} else {
  document.write("Erlaubnis nicht ermittelbar");
}
</script></td></tr>

<tr><td class="s1">Bildschirm</td>
<td class="s2"><script type="text/javascript">
document.writeln(screen.width + " x " + screen.height + " Pixel, Farbtiefe " + screen.colorDepth + " Bit");
</script></td></tr>

<tr><td class="s1">Fenster</td>
<td id="fenster" class="s2"> ? x ? </td></tr>

<tr><td class="s1">Flash-Player</td>
<td class="s2">
<script type="text/javascript">
  var vtext = "Fehler bei der Versionsbestimmung"
  if(window.swfobject) {
  var version = swfobject.getFlashPlayerVersion();
  vtext = "Kein Flashplayer installiert"
  if (version["major"] > 0) vtext = "Version " + version['major'] +"."+ version['minor'] +" R"+ version['release']; }
  document.writeln(vtext);
</script>
</td></tr>

<tr><td class="s1">Timer-Aufl&ouml;sung</td>
<td id="tres" class="s2">?</td></tr>

<tr><td class="s1">IP-Adresse</td>
<td class="s2"><?php echo  $_SERVER['REMOTE_ADDR']; ?>
 </td></tr>

<tr><td class="s1">Host-Name</td>
<td class="s2"><?php echo  $_SERVER['HTTP_HOST']; ?>
 </td></tr>

<tr><td class="s1">Proxyserver</td>
<td class="s2">

<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);

echo $hostname;


function gethostbyaddr6($ip6) {
  $ipv6calc = "/bin/ipv6calc";
  $dig = "/usr/bin/dig";
  $file = popen($ipv6calc." --in ipv6addr --out revnibbles.int ".escapeshellarg($ip6), r);
  $ip = fread($file, 128);
  pclose($file);
  if ((substr($ip, 0, 5) == "Error") || (!$ip)) return "Address is not a valid IPv6 address";
  $file = popen($dig." ptr ".$ip, r);                
   while (!feof ($file)) {
    $buffer = fgets($file, 128);
    if (substr($buffer, 0, 1) == ";") continue;
    $buffer = explode(" ", $buffer);
    if ($buffer[3] == "PTR") {
     $host = substr(trim($buffer[4]), 0, -1);
     pclose($file);
     return $host;
    }
   }
  pclose($file);
  return $ip6;
}

//echo gethostbyaddr6($_SERVER[REMOTE_ADDR]);



?>




 </td></tr>

<tr><td class="s1">Server</td>
<td class="s2"><?php echo  $_SERVER['SERVER_NAME']; ?>
 </td></tr>

<tr><td class="s1">Serverzeit</td>
<td class="s2">

 <?php
 error_reporting(E_ALL);
 ini_set('display_errors', TRUE); 
 /*
 class Timer
 {
    var $start = 0;
   var $stop  = 0;
    
    function microtime_float()
    {
    list($usec, $sec) = explode(" ", microtime());

     list($usec,$sec) = explode(" ", microtime());
     $sekunden = $usec + date("s");
     echo date("l dS of F Y h:i:",$sec).$sekunden.date(" A",$sec) ;
    
       return ((float)$usec + (float)$sec);
    
    }
       function usedtime()
       {
       if($this->stop === 0)
       {
       return $this->stop - microtime_float();
       }else
       {
       return $this->stop - $this->start;
       }
       }
       
       function start()
       { 
       $this->stop = 0;
       $this->start = $this->microtime_float();
       return $this->start;
       }
       
       function stop()
       {
       $this->stop = $this->microtime_float();
       return $this->usedtime();
       }
       }
       // testcode
       $timer = new Timer;
       $timer->start();
       // Hier kommt der zu messende Code hin
       $test = glob('../*'); // nur ein Beispiel
        $timer->stop();
        echo '<br>Abgelaufene Zeit:<br>';
        echo $timer->usedtime().'<br>';
*/
$timestamp = time();
$datum = date("Y-m-d (D) H:i:s",$timestamp);
echo "Current date and local time on this server is $datum <br>\n";
?>













 </td></tr>

<tr><td class="s1">PTB Atomuhr</td>
<td class="s2">
 
<?php
 
$timestamp = date('U');;
 
$time = date('F j, Y, g:i a', $timestamp);
echo $time;
?>

 </td></tr>

<tr><td class="s1">Port</td>
<td class="s2"><?php  echo $_SERVER['SERVER_PORT']; ?>
 </td></tr>


<tr><td class="s1">PC-Zeit</td>
<td class="s2"><script type="text/javascript">
document.write(DateForm(x));
</script></td></tr>

<tr><td class="s1">lokale Zeitzone</td>
<td class="s2"><script type="text/javascript">
var s_time = isMESZ(x2) ? "Sommerzeit" : "Winterzeit";
document.write(x2.getTimezoneOffset()/60 + " h (" + s_time + ")");
</script></td></tr>

<tr><td class="s1">DFUe-Speed
<script type="text/javascript">
document.write('<img src="http://pjunk.de/webtools/' + imgname + '" width="7" height="7" border="0" alt="' + imgname + '">');
</script>
</td>
<td id="dfue" class="s2">Check DFUe Speed... </td></tr>
</table>
<br>
</body>
</html>