replaced php with pure html in ntpstatus

This commit is contained in:
Jonas Leder 2021-04-13 10:57:43 +02:00
parent 9b54ebf318
commit 69a9c74eb7
3 changed files with 29 additions and 21 deletions

View file

@ -148,7 +148,7 @@ $responseJSON = [
],
[
"name" => "NTP Server",
"url" => "/ntpstatus.php",
"url" => "/ntpstatus.html",
"type" => "link"
],
]

28
public/ntpstatus.html Normal file
View file

@ -0,0 +1,28 @@
<!DOCTYPE html >
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="/css/style.css" rel="stylesheet">
<title></title>
</head>
<body>
<jl-header data-title="NTP Status"></jl-header>
<div id="content">
<!--Matomo Image Tracker -->
<img src="" style="border:0" alt=""/>
<!--End Matomo -->
<p>Da ich selber viel auf NTP zur Zeitsynchronisation setze habe ich mich dazu entschlossen selber einen NTP Server,
welche im ntp pool gelistet ist aufzusetzen. Unten sind die Statistiken zum Server für IPv4 und für IPv6</p>
<jl-ntp-graph data-server-ip="23.94.219.121"></jl-ntp-graph>
<jl-ntp-graph data-server-ip="83.136.84.239"></jl-ntp-graph>
<jl-ntp-graph data-server-ip="193.109.84.119"></jl-ntp-graph>
<jl-ntp-graph data-server-ip="2001:470:27:2bd::2"></jl-ntp-graph>
<jl-ntp-graph data-server-ip="2001:470:1f14:1019::2"></jl-ntp-graph>
<jl-ntp-graph data-server-ip="2001:4ba0:92c1:5d::2:1"></jl-ntp-graph>
</div>
<jl-footer></jl-footer>
<script src="/js/script.js"></script>
</body>
</html>

View file

@ -1,20 +0,0 @@
<?php
include "internal/header.php";
include "internal/footer.php";
getHeader("NTP Status", "status");
?>
<p>Da ich selber viel auf NTP zur Zeitsynchronisation setze habe ich mich dazu entschlossen selber einen NTP Server, welche im ntp pool gelistet ist aufzusetzen. Unten sind die Statistiken zum Server für IPv4 und für IPv6</p>
<?php
$IPs = ["23.94.219.121", "83.136.84.239", "193.109.84.119", "2001:470:27:2bd::2", "2001:470:1f14:1019::2", "2001:4ba0:92c1:5d::2:1"];
foreach($IPs as $ip){
echo <<<EOF
<jl-ntp-graph data-server-ip="$ip"></jl-ntp-graph>
EOF;
}
?>
<?php
getFooter();
?>