-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogausgabe-tag.php
61 lines (54 loc) · 1.78 KB
/
logausgabe-tag.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<html>
<head>
<title>Ausgabe der Logdatei</title>
<link rel="stylesheet" href="http://privat.tobis-bu.de/stylesheets/standard.css" type="text/css">
</head>
<body>
<?php
if ($_SERVER['REQUEST_METHOD'] == 'GET')
{
$p=$_REQUEST[p];
$nl = "<br>\n";
switch ($p)
{
case "Monday" : $tagdeutsch = "Montag";
break;
case "Tuesday" : $tagdeutsch = "Dienstag";
break;
case "Wednesday" : $tagdeutsch = "Mittwoch";
break;
case "Thursday" : $tagdeutsch = "Donnerstag";
break;
case "Friday" : $tagdeutsch = "Freitag";
break;
case "Saturday" : $tagdeutsch = "Samstag";
break;
case "Sunday" : $tagdeutsch = "Sonntag";
break;
}
if($p=="")
{
echo "Fehlerhafter Aufruf, du N00b!<br><br>";
echo "\n<a href=\"logausgabe.php\">Zurück zum aktuellen Log!!</a>\n";
exit;
}
echo "<h1>Alle Eingaben, die jemals am <font color=\"#FF3333\">\"$tagdeutsch\"</font> gemacht wurden</h1>\n";
echo "Andere Tage ansehen??";
echo "$nl $nl";
echo "<a href=\"./logausgabe-tag.php?p=Monday\">Montag</a><br>";
echo "<a href=\"./logausgabe-tag.php?p=Tuesday\">Dienstag</a><br>";
echo "<a href=\"./logausgabe-tag.php?p=Wednesday\">Mittwoch</a><br>";
echo "<a href=\"./logausgabe-tag.php?p=Thursday\">Donnerstag</a><br>";
echo "<a href=\"./logausgabe-tag.php?p=Friday\">Freitag</a><br>";
echo "<a href=\"./logausgabe-tag.php?p=Saturday\">Samstag</a><br>";
echo "<a href=\"./logausgabe-tag.php?p=Sunday\">Sonntag</a><br>";
echo "$nl $nl";
echo "<a href=\"./index.php\">Zurück zur Eingabe</a>";
echo "$nl $nl";
echo "<a href=\"./logausgabe.php\">Zurück zur heutigen Logausgabe!!</a>";
echo "$nl $nl";
include("./logs/$p.html");
}
?>
</body>
</html>