diff options
author | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-04 11:41:09 +0200 |
---|---|---|
committer | Minteck <46352972+Minteck@users.noreply.github.com> | 2021-07-04 11:41:09 +0200 |
commit | 6ae668238c37514cacd1977471a10284b432e5a1 (patch) | |
tree | 61e98cabaa82cf64c8390c70bfc934b3941443d3 /_site/admin | |
parent | 1d62401c897a5ba82d0def92d97d09195a6d676f (diff) | |
download | unchainedtech-6ae668238c37514cacd1977471a10284b432e5a1.tar.gz unchainedtech-6ae668238c37514cacd1977471a10284b432e5a1.tar.bz2 unchainedtech-6ae668238c37514cacd1977471a10284b432e5a1.zip |
Name change
Diffstat (limited to '_site/admin')
-rw-r--r-- | _site/admin/callback/index.php | 4 | ||||
-rw-r--r-- | _site/admin/denied/index.php | 2 | ||||
-rw-r--r-- | _site/admin/index.php | 2 | ||||
-rw-r--r-- | _site/admin/login/index.php | 2 | ||||
-rw-r--r-- | _site/admin/offline/index.php | 6 | ||||
-rw-r--r-- | _site/admin/status/index.php | 4 |
6 files changed, 10 insertions, 10 deletions
diff --git a/_site/admin/callback/index.php b/_site/admin/callback/index.php index 4243799..9c85d46 100644 --- a/_site/admin/callback/index.php +++ b/_site/admin/callback/index.php @@ -41,7 +41,7 @@ curl_setopt($crl, CURLOPT_HTTPHEADER, array( 'Content-Type: application/json', "Accept: application/json", "Authorization: token " . $data["access_token"], - "User-Agent: Blogchain-Admin/0.0.0 (nekostarfan@gmail.com)" + "User-Agent: UnchainedTech-Admin/0.0.0 (nekostarfan@gmail.com)" )); $result = curl_exec($crl); @@ -53,7 +53,7 @@ if (!in_array($ndata["login"], json_decode(file_get_contents($_SERVER['DOCUMENT_ } file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/admin/tokens/" . $data["access_token"], $ndata["login"]); -setcookie("ADMIN_TOKEN", $data["access_token"], 0, "/", "blogchain.minteck.ro.lt", true, true); +setcookie("ADMIN_TOKEN", $data["access_token"], 0, "/", "unchainedtech.minteck.ro.lt", true, true); header("Location: /admin"); die();
\ No newline at end of file diff --git a/_site/admin/denied/index.php b/_site/admin/denied/index.php index 8eb88c2..ec51020 100644 --- a/_site/admin/denied/index.php +++ b/_site/admin/denied/index.php @@ -3,7 +3,7 @@ <div class="container" style="margin-top:30px;text-align: center;"> <h1>Access is denied</h1> <h4 style="margin-bottom:20px;">This is a "staff only" page</h4> - <p>You tried to access a page that is on Blogchain's Administrators Workplace, which you cannot get access to because your GitHub account is not registered as a Blogchain Administrator.</p> + <p>You tried to access a page that is on UnchainedTech's Administrators Workplace, which you cannot get access to because your GitHub account is not registered as a UnchainedTech Administrator.</p> <p>You probably want to <a href="/" style="text-decoration: underline;">go back home</a>.</p> </div> diff --git a/_site/admin/index.php b/_site/admin/index.php index 62d4fa7..4697dfd 100644 --- a/_site/admin/index.php +++ b/_site/admin/index.php @@ -1,4 +1,4 @@ -<?php $__ADMIN = true; $_TITLE = "Blogchain Administration"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?> +<?php $__ADMIN = true; $_TITLE = "UnchainedTech Administration"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?> <div class="container" style="margin-top:30px;text-align: center;"> <h2>Welcome back <?= $_USER ?>!</h2> diff --git a/_site/admin/login/index.php b/_site/admin/login/index.php index 0741757..44db39c 100644 --- a/_site/admin/login/index.php +++ b/_site/admin/login/index.php @@ -1,4 +1,4 @@ <?php -header("Location: https://github.com/login/oauth/authorize?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/admin/credentials.json"), true)["id"] . "&redirect_uri=https://blogchain.minteck.ro.lt/admin/callback/&allow_signups=false&scope=read:user"); +header("Location: https://github.com/login/oauth/authorize?client_id=" . json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/admin/credentials.json"), true)["id"] . "&redirect_uri=https://unchainedtech.minteck.ro.lt/admin/callback/&allow_signups=false&scope=read:user"); die();
\ No newline at end of file diff --git a/_site/admin/offline/index.php b/_site/admin/offline/index.php index aa39eca..a013a17 100644 --- a/_site/admin/offline/index.php +++ b/_site/admin/offline/index.php @@ -1,11 +1,11 @@ -<?php $_TITLE = "Blogchain Administration"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?> +<?php $_TITLE = "UnchainedTech Administration"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?> <div class="container" style="margin-top:30px;text-align: center;"> - <h2>Extensively and simply manage Blogchain</h2> + <h2>Extensively and simply manage UnchainedTech</h2> <p>View unpublished articles, get statistics, export data and more.</p> <p> - <a class="btn btn-primary" href="https://minteck.ro.lt/admin/blogchain">Login with Minteck Central Admin</a> + <a class="btn btn-primary" href="https://minteck.ro.lt/admin/unchainedtech">Login with Minteck Central Admin</a> <a class="btn btn-primary" href="/admin/login">Login with GitHub</a> </p> </div> diff --git a/_site/admin/status/index.php b/_site/admin/status/index.php index 6d46f34..40671c2 100644 --- a/_site/admin/status/index.php +++ b/_site/admin/status/index.php @@ -1,4 +1,4 @@ -<?php $__ADMIN = true; $_TITLE = "Data Sync Status - Blogchain Administration"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/dom/header.php"; ?> +<?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> @@ -9,7 +9,7 @@ <ul> <?php - $commit = json_decode(gh_api("repos/Minteck/Blogchain-Content/commits"), true)[0]; + $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>"); } |