blob: 7b6254e393913392bb94cef60a027798c238631d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?php
if (time() >= 1688169600) die();
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 on July 1st.")
]
]));
|