From 8d92bdf0aeab6f93c623aa11493d78f71ab7394c Mon Sep 17 00:00:00 2001 From: Ben Border Date: Fri, 11 Feb 2022 00:13:54 -0500 Subject: [PATCH] Update stuff. --- .gitignore | 1 + README.md | 4 +- api/info.php | 25 ++ index.html | 649 +++++++++++++++++++++++++-------------------------- 4 files changed, 350 insertions(+), 329 deletions(-) create mode 100644 .gitignore create mode 100644 api/info.php diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3c0216e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +app-env \ No newline at end of file diff --git a/README.md b/README.md index a8c593f..49f5bfe 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,3 @@ # server-info -Page to display info about my server - -API is avalible at https://srv-info-api.flolon.cc/info.php +Page to display info about my VPS server from Vultr's API diff --git a/api/info.php b/api/info.php new file mode 100644 index 0000000..793a1c9 --- /dev/null +++ b/api/info.php @@ -0,0 +1,25 @@ +instances; + +echo json_encode($serverInfo[0]); + +?> \ No newline at end of file diff --git a/index.html b/index.html index 6258d10..5990491 100644 --- a/index.html +++ b/index.html @@ -1,333 +1,330 @@ - - - - - - - Flolon Server Info - - - - - - - -
- - - - - -
-
Server state: -
-
Status: -
-
Power status: -
-
-
OS: -
-
Specs: -
-
Location: -
-
-
Bandwidth: - / -
-
Charges: - / -
-
-
Main IPv4: -
-
IPv4 netmask: -
-
IPv4 gateway: -
-
Main IPv6: -
-
IPv6 network: -
-
IPv6 size: -
- -
-
- - API - | - Refresh -
- -
- - + - - - + \ No newline at end of file