From 02eda3e4c9b4ba718f1fff70b7328ed8cdd5e63b Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sun, 2 Apr 2023 23:03:02 +0200 Subject: Updated 35 files, added 11 files and deleted includes/components/search.inc (automated) --- includes/util/session.inc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'includes/util/session.inc') diff --git a/includes/util/session.inc b/includes/util/session.inc index 7a6b931..72dd34d 100644 --- a/includes/util/session.inc +++ b/includes/util/session.inc @@ -9,6 +9,12 @@ global $_PROFILE; $isLoggedIn = false; $isLowerLoggedIn = false; +if (!function_exists("formatPonypush")) { + function formatPonypush($message) { + return "Update to Ponypush 3.1.0 or later — (\$PA1$\$" . base64_encode($message) . "\$\$)"; + } +} + if (isset($_COOKIE['PEH2_SESSION_TOKEN'])) { if (!(str_contains($_COOKIE['PEH2_SESSION_TOKEN'], ".") || str_contains($_COOKIE['PEH2_SESSION_TOKEN'], "/") || trim($_COOKIE["PEH2_SESSION_TOKEN"]) === "")) { if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . str_replace(".", "", str_replace("/", "", $_COOKIE['PEH2_SESSION_TOKEN'])))) { -- cgit