diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-06 19:40:32 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-06 19:40:32 +0200 |
commit | ca07d777b1a35b43d587e7302346b35a8c4dece2 (patch) | |
tree | 5ce72689f3dccf327925e817533e066d6183ba7e /includes/luna.php | |
parent | 580327906eac0ecd7ff5abecd2d64bb713cb85a8 (diff) | |
download | pluralconnect-ca07d777b1a35b43d587e7302346b35a8c4dece2.tar.gz pluralconnect-ca07d777b1a35b43d587e7302346b35a8c4dece2.tar.bz2 pluralconnect-ca07d777b1a35b43d587e7302346b35a8c4dece2.zip |
Added includes/luna.php (automated)
Diffstat (limited to 'includes/luna.php')
-rw-r--r-- | includes/luna.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/includes/luna.php b/includes/luna.php new file mode 100644 index 0000000..ceb9266 --- /dev/null +++ b/includes/luna.php @@ -0,0 +1,20 @@ +<?php + +require_once './composer/vendor/autoload.php'; +$_SERVER['DOCUMENT_ROOT'] = ".."; +require_once './util/functions.inc'; + +$app = json_decode(file_get_contents("./app.json"), true); +$ntfy = $app["ntfy"]; + +file_get_contents('https://' . $ntfy["server"] . '/' . $ntfy["topic"], false, stream_context_create([ + 'http' => [ + 'method' => 'POST', + 'header' => + "Content-Type: text/plain\r\n" . + "Title: " . formatPonypush("⚠️ Luna is out of support") . "\r\n" . + "Tags: reminder\r\n" . + "Authorization: Basic " . base64_encode($ntfy["user"] . ":" . $ntfy["password"]), + 'content' => formatPonypush("Luna is now out of support on Windows, Linux, macOS, Chrome OS and Android. It is recommended that you uninstall the application before the servers are disabled later this summer.") + ] +]));
\ No newline at end of file |