From bbb39daa0535b576e700e600dc392f7bba05cf71 Mon Sep 17 00:00:00 2001
From: Tim Repke <repketim@informatik.hu-berlin.de>
Date: Sat, 9 Aug 2014 15:32:45 +0200
Subject: [PATCH] useless feature: 404 page now looks like terminal

---
 registration-system/admin/index.php          |  2 +-
 registration-system/admin/pages.php          | 10 ++++++++--
 registration-system/config.inc.php           |  2 +-
 registration-system/view/admin_template.html |  8 +++++++-
 4 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/registration-system/admin/index.php b/registration-system/admin/index.php
index 50b8d0b..a7344bc 100644
--- a/registration-system/admin/index.php
+++ b/registration-system/admin/index.php
@@ -46,7 +46,7 @@ END;
         //case "mail":
             //page_mail(); break;
         default:
-            page_404();
+            page_404($page);
     }
 }
 else
diff --git a/registration-system/admin/pages.php b/registration-system/admin/pages.php
index c141aeb..7c24d36 100644
--- a/registration-system/admin/pages.php
+++ b/registration-system/admin/pages.php
@@ -39,10 +39,16 @@ END;
 
 }
 
-function page_404()
+function page_404($pag)
 {
     global $text;
-    $text .= "404 Seite nicht gefunden...";
+    $text .='
+        <div style="background-color:black; color:antiquewhite; font-family: \'Courier New\', Courier, monospace;height: 100%; width: 100%;position:fixed; top:0; padding-top:40px;">
+            $ get-page '.$pag.'<br />
+            404 - page not found ('.$pag.')<br />
+            $ <blink>&#9611;</blink>
+        </div>';
+
 }
 
 ?>
\ No newline at end of file
diff --git a/registration-system/config.inc.php b/registration-system/config.inc.php
index 6bac5b3..14e777e 100644
--- a/registration-system/config.inc.php
+++ b/registration-system/config.inc.php
@@ -41,7 +41,7 @@ $config_reisearten = array(
 $config_admins = array(
     // username => password
     "george" => "peter",
-    "tim"    => "meter",
+    "tim"    => '{SHA-256}8013a101f26fd8dcc8c40d0eb1dcb513$c3a97d44e67564ed79a60fa0de6ea4193bb18932a8d08b5e8d664bd14b32a4f5', // broetchen
     "manu"   => '{SHA-256}12c9b021c42741545f9f01e2afd67aa2$7112be28c0c11f987de4401798a2ba041e518bb3f22bcb8cf4f3bf3f590b65b9' // mepmepmep
 );
 
diff --git a/registration-system/view/admin_template.html b/registration-system/view/admin_template.html
index e7126b1..4828569 100644
--- a/registration-system/view/admin_template.html
+++ b/registration-system/view/admin_template.html
@@ -6,10 +6,16 @@
     <meta charset="UTF-8" />
     {headers}
     <style type="text/css">
-        body {
+        html,body {
             font-family:Verdana,Helvetica,sans-serif;
             font-size:12pt;
+            padding: 0;
+            margin:0;
+            height:100%
+        }
+        body{
             margin-top: 40px;
+            height:100%;
         }
         a:link, a:visited {
             background-color:inherit;
-- 
GitLab