diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/api/money/create.php | 2 | ||||
-rw-r--r-- | pages/fronting.inc | 4 | ||||
-rw-r--r-- | pages/travelling.inc | 14 |
3 files changed, 12 insertions, 8 deletions
diff --git a/pages/api/money/create.php b/pages/api/money/create.php index 0b78f57..12cc7c9 100644 --- a/pages/api/money/create.php +++ b/pages/api/money/create.php @@ -79,7 +79,7 @@ file_get_contents('https://' . $ntfy["server"] . '/' . $ntfy["topic"], false, st "Title: " . formatPonypush((getMember($myId)["display_name"] ?? getMember($myId)["name"]) . " created a transaction to " . $account["name"] . " (" . ucfirst($account["owner"]) . ")") . "\r\n" . "Tags: bits\r\n" . "Authorization: Basic " . base64_encode($ntfy["user"] . ":" . $ntfy["password"]), - 'content' => formatPonypush(($account["currency"] === "gbp" ? "£" : "€") . abs((float)$data["amount"]) . " were " . ((float)$data["amount"] >= 0 ? "added" : "removed") . " just now" . (trim($data["description"]) !== "" ? ": " . $_GET["description"] : "")) + 'content' => formatPonypush(($account["currency"] === "gbp" ? "£" : "€") . abs((float)$data["amount"]) . " were " . ((float)$data["amount"] >= 0 ? "added" : "removed") . " just now" . (trim($data["description"]) !== "" ? ": " . $data["description"] : "")) ] ])); diff --git a/pages/fronting.inc b/pages/fronting.inc index 6cd464b..9873b81 100644 --- a/pages/fronting.inc +++ b/pages/fronting.inc @@ -1,5 +1,9 @@ <?php +if (time() >= 1686787200) { + peh_error("Page not found: fronting", 404); +} + require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/init.inc"; global $title; global $isLoggedIn; global $lang; global $pages; require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/components/header.inc'; diff --git a/pages/travelling.inc b/pages/travelling.inc index ee2e2c3..7eb3dfa 100644 --- a/pages/travelling.inc +++ b/pages/travelling.inc @@ -39,8 +39,8 @@ if (isset($_GET['toggleTravel']) && $isLoggedIn) { $reqContext = stream_context_create($reqOptions); // No actual data is received on DELETE, so we don't even bother trying to collect req response; if it fails it will put a warning in the logs anyway. - sleep(1); - file_get_contents("https://api.pluralkit.me/v2/members/$travellingMember", false, $reqContext); + //sleep(1); + //file_get_contents("https://api.pluralkit.me/v2/members/$travellingMember", false, $reqContext); } } else { $travelling[$_GET['member']]["travelling"] = true; @@ -86,13 +86,13 @@ if (isset($_GET['toggleTravel']) && $isLoggedIn) { $reqContext = stream_context_create($reqOptions); - sleep(1); - $member = json_decode(file_get_contents("https://api.pluralkit.me/v2/members", false, $reqContext), true); + //sleep(1); + //$member = json_decode(file_get_contents("https://api.pluralkit.me/v2/members", false, $reqContext), true); // Member exists? - if (isset($member)) { - $travelling[$id]['pluralkit'] = $member["id"]; - } + //if (isset($member)) { + //$travelling[$id]['pluralkit'] = $member["id"]; + //} } } } |