From 69a9c74eb75507b30154401ce33245cc3f07708f Mon Sep 17 00:00:00 2001
From: Jonas Leder <git@jonasled.de>
Date: Tue, 13 Apr 2021 10:57:43 +0200
Subject: [PATCH] replaced php with pure html in ntpstatus

---
 public/API/mainMenu.php |  2 +-
 public/ntpstatus.html   | 28 ++++++++++++++++++++++++++++
 public/ntpstatus.php    | 20 --------------------
 3 files changed, 29 insertions(+), 21 deletions(-)
 create mode 100644 public/ntpstatus.html
 delete mode 100644 public/ntpstatus.php

diff --git a/public/API/mainMenu.php b/public/API/mainMenu.php
index f867cf4..ca34385 100644
--- a/public/API/mainMenu.php
+++ b/public/API/mainMenu.php
@@ -148,7 +148,7 @@ $responseJSON = [
             ],
             [
                 "name" => "NTP Server",
-                "url" => "/ntpstatus.php",
+                "url" => "/ntpstatus.html",
                 "type" => "link"
             ],
         ]
diff --git a/public/ntpstatus.html b/public/ntpstatus.html
new file mode 100644
index 0000000..b745d67
--- /dev/null
+++ b/public/ntpstatus.html
@@ -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>
\ No newline at end of file
diff --git a/public/ntpstatus.php b/public/ntpstatus.php
deleted file mode 100644
index 2eb1573..0000000
--- a/public/ntpstatus.php
+++ /dev/null
@@ -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();
-?>
\ No newline at end of file
-- 
GitLab