Gazelle/sections/tools/managers/take_global_notification.php

14 lines
372 B
PHP
Raw Normal View History

2013-08-28 23:08:41 +00:00
<?
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);
2013-09-15 08:00:53 +00:00
} elseif ($_POST['delete']) {
2013-08-28 23:08:41 +00:00
NotificationsManager::delete_global_notification();
}
2013-09-15 08:00:53 +00:00
header("Location: tools.php?action=global_notification");