history.php: cleanup html

This commit is contained in:
frederik
2024-04-03 14:38:01 +02:00
parent 296cc091e0
commit 4f4438b5de
+12 -7
View File
@@ -63,9 +63,9 @@ if(isset($_GET['blocation']) ) {
die(); die();
} }
if (get_included_files()[0] === __FILE__) {
?> echo '<!DOCTYPE html>
<html lang="en">
<head> <head>
<style> <style>
@@ -77,7 +77,9 @@ if(isset($_GET['blocation']) ) {
} }
</style> </style>
</head> </head>
<body> <body>';
}
?>
<script src="static/dialog-polyfill.js"></script> <script src="static/dialog-polyfill.js"></script>
<div class="history centered"> <div class="history centered">
@@ -154,6 +156,9 @@ if (file_exists('./Charts/'.$chart2)) {
echo "<img src=\"/Charts/$chart2?nocache=$time\">"; echo "<img src=\"/Charts/$chart2?nocache=$time\">";
} else { } else {
echo "<p>No Charts For $theDate</p>"; echo "<p>No Charts For $theDate</p>";
}?> }
</div> echo "</div>";
</html> if (get_included_files()[0] === __FILE__) {
echo '</html>
</body>';
}