File "admin-notifications-delete.inc.php"
Full Path: /srv/www/www.cadoro.it/src/controllers/admin-notifications-delete.inc.php
File size: 467 bytes
MIME-type: text/x-php
Charset: utf-8
<?php
$notification = models\Notification::get_by_id($notification_id);
if (!$notification) {
not_found();
}
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$notification->delete();
header("Location: " . BASE_URL . "/admin/notifications");
exit;
}
$smarty->assign("notification", $notification);
$smarty->assign("menu", "content");
$smarty->assign("submenu", "notifications");
$smarty->display("admin-notifications-delete.tmpl");
?>