<?http_response_code(404);?><!DOCTYPE html>
<?
  /* wget 404 page - © Copyright 2010 Sebastian Krzyszkowiak <dos@dosowisko.net> 

     This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU Affero General Public License as published by
     the Free Software Foundation, either version 3 of the License, or
     (at your option) any later version.

     This program is distributed in the hope that it will be useful,
     but WITHOUT ANY WARRANTY; without even the implied warranty of
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     GNU Affero General Public License for more details.

     You should have received a copy of the GNU Affero General Public License
     along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */

  // replace it with your data
  $nickname = 'dos';
  $mail = 'dos@dosowisko.net';
?>
<!-- wget 404 page - © Copyright 2010 Sebastian Krzyszkowiak <dos@dosowisko.net>
     Distributed under GNU AGPLv3 or later.
     Source available at: http://dosowisko.net/404.php.src -->
<html>
<head>
<title>Page Not Found - <?=$_SERVER['SERVER_NAME']?></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="robots" content="noindex, follow" />
<style type="text/css">
  body {
    color: white;
    background-color: black;
    font-family: monospace;
  }
  a {
   color: white;
   text-decoration: none;
  }
  a:hover {
   text-decoration: underline;
  }
</style>
<script type="text/javascript">
  var mig;

  function zamigocz() {
    if (mig.innerHTML=="_") {
      mig.innerHTML="&nbsp;";
    }
    else {
      mig.innerHTML="_";
    }
  }

  function migotaj() {
    mig=document.getElementById('underline');
    setInterval("zamigocz()",500);
  }
</script>
</head>
<body onload="migotaj()">
  <?
  function get_proto() {
     if (!(isset($_SERVER['HTTPS']))) {
       return 'http://';
     }
     else {
       return 'https://';
     }
  }
  ?>
  <div><a href="mailto:<?=$mail?>"><?=$nickname?></a>@<?= $_SERVER['SERVER_NAME'] ?>:~# wget <?=get_proto()?><?=$_SERVER['SERVER_NAME']?><?= $_SERVER['REQUEST_URI'] ?></div>
  <div>--<?= date('Y-m-d H:i:s',$_SERVER['REQUEST_TIME']) ?>--  <?=get_proto()?><?=$_SERVER['SERVER_NAME']?><?= $_SERVER['REQUEST_URI'] ?><br/>
  Resolving <?= $_SERVER['SERVER_NAME'] ?>... <?= $_SERVER['SERVER_ADDR']?><br/>
  Connecting to <?= $_SERVER['SERVER_NAME'] ?>|<?= $_SERVER['SERVER_ADDR']?>|:<?= $_SERVER['SERVER_PORT'] ?>... connected.<br/>
  HTTP request sent, awaiting response... 404 Not Found<br/>
  <?= date('Y-m-d H:i:s') ?> ERROR 404: Not Found.</div>
  <div>&nbsp;</div>
  <div><a href="http://<?=$_SERVER['SERVER_NAME']?>/"><?=$nickname?>@<?= $_SERVER['SERVER_NAME'] ?>:~</a># <span id="underline">_</span></div>
</body>
</html>
