mirror of
https://github.com/kawaiipantsu/theZoo-WebUI
synced 2026-08-09 12:44:16 +00:00
EULA check, better 404
This commit is contained in:
@@ -311,4 +311,11 @@ table#malwareOverview tr.malwareLine:hover {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
p {
|
||||
margin: 10px;
|
||||
}
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user