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

Last change on this file since 19982 was 19635, checked in by Daniela Dorner, 5 years ago
added user
File size: 630 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 $query="UPDATE FlareTriggers SET fTriggerAcknowledged=Now(), fUser='".$_POST['Uname']."' WHERE NOT fTriggerType=5 AND ISNULL(fTriggerAcknowledged)";
14 $db->query($query);
15
16
17 $link=$_POST["link"];
18 //echo "____".$link."----".$_POST["Uname"];
19 header("Location: https://fact-project.org".$link);
20 exit();
21?>
Note: See TracBrowser for help on using the repository browser.