mirror of
https://github.com/OPSnet/Gazelle.git
synced 2026-10-19 19:03:18 -04:00
17 lines
431 B
PHP
17 lines
431 B
PHP
<?php
|
|
|
|
use \Gazelle\Manager\Notification;
|
|
|
|
if (!check_perms("admin_global_notification")) {
|
|
error(404);
|
|
}
|
|
$notification = new Notification;
|
|
if ($_POST['set']) {
|
|
$Expiration = $_POST['length'] * 60;
|
|
$notification->setGlobal($_POST['message'], $_POST['url'], $_POST['importance'], $Expiration);
|
|
} elseif ($_POST['delete']) {
|
|
$notification->deleteGlobal();
|
|
}
|
|
|
|
header("Location: tools.php?action=global_notification");
|