aboutsummaryrefslogtreecommitdiff
path: root/_site/admin/status/index.php
diff options
context:
space:
mode:
Diffstat (limited to '_site/admin/status/index.php')
-rw-r--r--_site/admin/status/index.php78
1 files changed, 39 insertions, 39 deletions
diff --git a/_site/admin/status/index.php b/_site/admin/status/index.php
index 40671c2..2698c5b 100644
--- a/_site/admin/status/index.php
+++ b/_site/admin/status/index.php
@@ -1,40 +1,40 @@
-<?php $__ADMIN = true; $_TITLE = "Data Sync Status - UnchainedTech Administration"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?>
-
-<div class="container" style="margin-top:30px;text-align: center;">
- <h2>Data Sync Status</h2>
- <p>Check if everything is good!</p>
-</div>
-
-<div class="container">
- <ul>
- <?php
-
- $commit = json_decode(gh_api("repos/Minteck/UnchainedTech-Content/commits"), true)[0];
- if (!isset($commit["commit"]["verification"]) || !isset($commit["commit"]["verification"]["verified"]) || !$commit["commit"]["verification"]["verified"]) {
- echo("<li class='list-admin-warning'>This version is <b>not</b> digitally signed, its content may have been compromised.</li>");
- }
-
- ?>
- <li><b>Upstream version:</b> <?php
-
- echo(substr($commit["sha"], 0, 7) . " « " . $commit["commit"]["message"] . " » · commited by " . $commit["commit"]["author"]["name"]);
-
- ?></li>
- <li><b>Downstream version:</b> <?php
-
- echo(substr(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/../_posts/.git/refs/heads/master"), 0, 7));
-
- ?></li>
- <li><?php
-
- if (trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/../_posts/.git/refs/heads/master")) === trim($commit["sha"])) {
- echo("Downstream is up to date");
- } else {
- echo("Downstream <b>rebase needed</b>");
- }
-
- ?></li>
- </ul>
-</div>
-
+<?php $__ADMIN = true; $_TITLE = "Data Sync Status - UnchainedTech Administration"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?>
+
+<div class="container" style="margin-top:30px;text-align: center;">
+ <h2>Data Sync Status</h2>
+ <p>Check if everything is good!</p>
+</div>
+
+<div class="container">
+ <ul>
+ <?php
+
+ $commit = json_decode(gh_api("repos/Minteck/UnchainedTech-Content/commits"), true)[0];
+ if (!isset($commit["commit"]["verification"]) || !isset($commit["commit"]["verification"]["verified"]) || !$commit["commit"]["verification"]["verified"]) {
+ echo("<li class='list-admin-warning'>This version is <b>not</b> digitally signed, its content may have been compromised.</li>");
+ }
+
+ ?>
+ <li><b>Upstream version:</b> <?php
+
+ echo(substr($commit["sha"], 0, 7) . " « " . $commit["commit"]["message"] . " » · commited by " . $commit["commit"]["author"]["name"]);
+
+ ?></li>
+ <li><b>Downstream version:</b> <?php
+
+ echo(substr(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/../_posts/.git/refs/heads/master"), 0, 7));
+
+ ?></li>
+ <li><?php
+
+ if (trim(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/../_posts/.git/refs/heads/master")) === trim($commit["sha"])) {
+ echo("Downstream is up to date");
+ } else {
+ echo("Downstream <b>rebase needed</b>");
+ }
+
+ ?></li>
+ </ul>
+</div>
+
<?php require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/footer.php"; ?> \ No newline at end of file