YaWK  24.1
Yet another WebKit
dismiss-notifications.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 $uid = $_POST['uid'];
6 // SET NOTIFICATION STATUS TO SEEN
7 if ($db->query("UPDATE {syslog} SET seen = '1' WHERE seen = '0'"))
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 }