source: trunk/www/flare_alerts/acknowledge_alerts.php@ 19580

Last change on this file since 19580 was 19580, checked in by Daniela Dorner, 5 years ago
added files
File size: 719 bytes
Line 
1<?php
2 require_once("login.php");
3 if (!(login() == "")) {
4 exit("username or password not found.");
5 }
6 include('/home/fact/php_credentials/factweb.php');
7
8 $db = new PDO(
9 'mysql:host='.$host.';dbname=FlareAlerts;charset=utf8mb4',
10 $user,
11 $pass);
12
13 $db->query('UPDATE '
14 .' FlareTriggers '
15 .'SET '
16 .' fTriggerAcknowledged = Now() '
17 .'WHERE '
18 .' NOT fTriggerType=5 AND '
19 .' ISNULL(fTriggerAcknowledged)'
20 );
21
22
23 $link=$_POST["link"];
24 //echo "____".$link."----".$_POST["Uname"];
25 header("Location: https://fact-project.org".$link);
26 exit();
27?>
Note: See TracBrowser for help on using the repository browser.