error nachricht
This commit is contained in:
41
tab/tuer.php
41
tab/tuer.php
@@ -1,7 +1,42 @@
|
||||
<?php
|
||||
$nr = $_GET["nr"];
|
||||
|
||||
$tag = strtotime($nr." December 2023");
|
||||
$images = [
|
||||
"", // 0 Leer lassen
|
||||
"1-image", // 1
|
||||
"2-image",
|
||||
"3-image",
|
||||
"4-image",
|
||||
"5-image",
|
||||
"6-image",
|
||||
"7-image",
|
||||
"8-image",
|
||||
"9-image",
|
||||
"10-image",
|
||||
"11-image",
|
||||
"12-image",
|
||||
"13-image",
|
||||
"14-image",
|
||||
"15-image",
|
||||
"16-image",
|
||||
"1-image",
|
||||
"2-image",
|
||||
"3-image",
|
||||
"4-image",
|
||||
"5-image",
|
||||
"6-image",
|
||||
"7-image",
|
||||
"24",
|
||||
"scheniiW",
|
||||
"packa"
|
||||
];
|
||||
if ($nr>-1 && $nr<sizeof($images)) {
|
||||
$errorImage = $images[$nr];
|
||||
}else {
|
||||
$errorImage = "pepperPig";
|
||||
}
|
||||
|
||||
$tag = strtotime($nr." December 2024");
|
||||
if (isset($_GET["debug"])) {
|
||||
$now = strtotime($_GET["debug"]);
|
||||
} else {
|
||||
@@ -12,6 +47,8 @@ if ($now < $tag) {
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
|
||||
<div class="tueren">
|
||||
<?php
|
||||
switch ($nr) {
|
||||
@@ -404,7 +441,7 @@ if ($now < $tag) {
|
||||
default:
|
||||
echo('<div id="txt"><h3>Falscher Tag</h3><p id="false">
|
||||
Ah Ah Ah, nicht so voreilig. <br> Dieser Tag ist noch nicht an der Reihe !, <br> Du muss dich noch ein wenig Gedulden. </p>
|
||||
<img id="falseDay" src="src/images/peperPig/pepperPig.png"</img>
|
||||
<img id="falseDay" src="src/images/peperPig/'.$errorImage.'.png"</img>
|
||||
</div>');
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user