From 15d57568ddfd29e5a75dd851a7e4d4b934071508 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 9 Sep 2023 01:09:07 +0300 Subject: [PATCH] show admin label when host in ADMIN_REMOTE_ADDRESS_WHITELIST --- src/public/index.php | 4 ++++ src/public/peer.php | 3 +++ src/public/search.php | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/src/public/index.php b/src/public/index.php index 1926183..aaad723 100644 --- a/src/public/index.php +++ b/src/public/index.php @@ -2,6 +2,7 @@ // Load dependencies require_once (__DIR__ . '/../config/app.php'); +require_once (__DIR__ . '/../library/access.php'); require_once (__DIR__ . '/../library/mysql.php'); require_once (__DIR__ . '/../../vendor/autoload.php'); @@ -181,6 +182,9 @@ $peers = $memory->getByMethodCallback(
+ + +
diff --git a/src/public/peer.php b/src/public/peer.php index ea1b54a..5b93575 100644 --- a/src/public/peer.php +++ b/src/public/peer.php @@ -213,6 +213,9 @@ $peerPortStatuses = $db->findLastPeerPortStatusesByPeerId($requestPeerId);
+ + + diff --git a/src/public/search.php b/src/public/search.php index 758ab67..da942c6 100644 --- a/src/public/search.php +++ b/src/public/search.php @@ -1,6 +1,7 @@ searchPeers($requestQuery,