diff options
Diffstat (limited to 'includes/util/session.inc')
-rw-r--r-- | includes/util/session.inc | 6 |
1 files changed, 6 insertions, 0 deletions
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'])))) { |