mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-03-01 17:51:04 +01:00
25 lines
594 B
PHP
25 lines
594 B
PHP
<?php
|
|
// Init
|
|
error_reporting(NULL);
|
|
session_start();
|
|
include($_SERVER['DOCUMENT_ROOT']."/inc/main.php");
|
|
|
|
|
|
// Check token
|
|
if ((!isset($_GET['token'])) || ($_SESSION['token'] != $_GET['token'])) {
|
|
header('location: /login/');
|
|
exit;
|
|
}
|
|
|
|
|
|
if($_GET['delete'] == 1){
|
|
$v_id = (string)((int)$_GET['notification_id']);
|
|
v_exec('v-delete-user-notification', [$user, $v_id]);
|
|
} else {
|
|
$v_id = (string)((int)$_GET['notification_id']);
|
|
//echo VESTA_CMD."v-acknowledge-user-notification ".$v_username." ".$v_id;
|
|
v_exec('v-acknowledge-user-notification', [$user, $v_id]);
|
|
}
|
|
|
|
exit;
|