EULA check, better 404

This commit is contained in:
KawaiiPantsu
2022-10-30 13:28:58 +01:00
parent d28294c294
commit 223b010ec0
2 changed files with 20 additions and 1 deletions
+7
View File
@@ -311,4 +311,11 @@ table#malwareOverview tr.malwareLine:hover {
cursor: pointer;
}
h3 {
font-size: 18px;
font-weight: bold;
}
p {
margin: 10px;
}
+13 -1
View File
@@ -40,7 +40,9 @@ while ($row = $results->fetchArray()) {
}
$page_malwarelist .= "</table>\n";
$page_404 = "Sorry but i could not find that page!";
$page_404 = "<h3>Ouch, sorry page not found!</h3>".
"<p>This project is still very heavily under development, so there will be pages missing :)</p>".
"<p>New features are being added all the time, please try again later ...</p>";
@@ -75,6 +77,16 @@ switch($pageShow) {
break;
}
// Crude way to check for theZoo EULA
// But doing it here to show "more pretty page about it..."
// Should be done higher up and perhaps "die"...
if ( checkEULA() === false ) {
// We simply overrule the page !!
// But mind, anything done above will still be executed/run
$page = "<h3>Hi! Even though the zoo is open!</h3>".
"<p>You need to accept theZoo EULA!</br>This site won't work until you do so :)</p>";
}
?><!doctype html>
<html lang="en">