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();
}
?>
if (get_included_files()[0] === __FILE__) {
echo '<!DOCTYPE html>
<html lang="en">
<head>
<style>
@@ -77,7 +77,9 @@ if(isset($_GET['blocation']) ) {
}
</style>
</head>
<body>
<body>';
}
?>
<script src="static/dialog-polyfill.js"></script>
<div class="history centered">
@@ -154,6 +156,9 @@ if (file_exists('./Charts/'.$chart2)) {
echo "<img src=\"/Charts/$chart2?nocache=$time\">";
} else {
echo "<p>No Charts For $theDate</p>";
}?>
</div>
</html>
}
echo "</div>";
if (get_included_files()[0] === __FILE__) {
echo '</html>
</body>';
}