mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 19:06:27 +00:00
13 lines
370 B
PHP
13 lines
370 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");
|