mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 10:56:26 +00:00
14 lines
372 B
PHP
14 lines
372 B
PHP
<?
|
|
|
|
if (!check_perms("users_mod")) {
|
|
error(404);
|
|
}
|
|
if ($_POST['set']) {
|
|
$Expiration = $_POST['length'] * 60;
|
|
NotificationsManager::set_global_notification($_POST['message'], $_POST['url'], $_POST['importance'], $Expiration);
|
|
} elseif ($_POST['delete']) {
|
|
NotificationsManager::delete_global_notification();
|
|
}
|
|
|
|
header("Location: tools.php?action=global_notification");
|