diff options
author | RaindropsSys <contact@minteck.org> | 2023-03-24 08:54:44 +0100 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-03-24 08:54:44 +0100 |
commit | 609dc69c1332813c3a367e184663e498c4f559ff (patch) | |
tree | d9b4f2da0ed539ad80770a76eedad12af98a5ef9 /pages/api/emergency-real.php | |
parent | 6298bb850af8101ae90db6c1c16efb92109c60cf (diff) | |
download | pluralconnect-609dc69c1332813c3a367e184663e498c4f559ff.tar.gz pluralconnect-609dc69c1332813c3a367e184663e498c4f559ff.tar.bz2 pluralconnect-609dc69c1332813c3a367e184663e498c4f559ff.zip |
Updated 2 files and added pages/api/badger.php (automated)
Diffstat (limited to 'pages/api/emergency-real.php')
-rw-r--r-- | pages/api/emergency-real.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pages/api/emergency-real.php b/pages/api/emergency-real.php index 1e4c0e9..d0412c8 100644 --- a/pages/api/emergency-real.php +++ b/pages/api/emergency-real.php @@ -24,4 +24,17 @@ file_get_contents('https://' . $ntfy["server"] . '/' . $ntfy["topic"], false, st ] ])); +file_get_contents('https://' . $ntfy["server"] . '/emergency', false, stream_context_create([ + 'http' => [ + 'method' => 'POST', + 'header' => + "Content-Type: text/plain\r\n" . + "Title: ⚠️🆘 EMERGENCY ⚠️🆘\r\n" . + "Priority: urgent\r\n" . + "Tags: emergency\r\n" . + "Authorization: Basic " . base64_encode($ntfy["user"] . ":" . $ntfy["password"]), + 'content' => "This is an emergency, " . $_PROFILE['name'] . " is in need of IMMEDIATE help. Please act now!" + ] +])); + die();
\ No newline at end of file |