YaWK  24.1
Yet another WebKit
reopen-singleNotification.php
Go to the documentation of this file.
1 <?php
2 require_once '../../system/classes/db.php';
3 require_once '../../system/classes/sys.php';
4 $db = new \YAWK\db();
5 $id = $_POST['id'];
6 // SET NOTIFICATION STATUS TO SEEN
7 if ($db->query("UPDATE {syslog} SET seen = '0' WHERE log_id = '$id'"))
8 { // success
9  echo "true";
10 }
11 else
12 { // q failed
13  echo "false";
14  // echo \YAWK\alert::draw("warning","Warning!", "Could not set notification status. Please try again.",'',4200);
15 }