diff options
author | Liam McLoughlin <hexxeh@hexxeh.net> | 2011-08-06 00:37:00 +0100 |
---|---|---|
committer | Liam McLoughlin <hexxeh@hexxeh.net> | 2011-08-06 00:37:00 +0100 |
commit | ee02363d07131379c1e2537cffa20c453f596cad (patch) | |
tree | 4f770efa72aee4a7daa9f1b80f8c8a4ba7a43c8a /web/process.php | |
parent | Fix simultaneous build detection, fix sorting on keyboard layouts (diff) | |
download | gentoaster-ee02363d07131379c1e2537cffa20c453f596cad.tar.gz gentoaster-ee02363d07131379c1e2537cffa20c453f596cad.tar.bz2 gentoaster-ee02363d07131379c1e2537cffa20c453f596cad.zip |
Add email notification support
Diffstat (limited to 'web/process.php')
-rw-r--r-- | web/process.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/web/process.php b/web/process.php index c590bee..de8ea90 100644 --- a/web/process.php +++ b/web/process.php @@ -62,6 +62,7 @@ $features = filter_input(INPUT_POST, "features", FILTER_CALLBACK, $sfi); $keywords = filter_input(INPUT_POST, "keywords", FILTER_CALLBACK, $sfi); $outputFormat = filter_input(INPUT_POST, "format", FILTER_CALLBACK, $sfi); + $email = filter_input(INPUT_POST, "email", FILTER_VALIDATE_EMAIL); $iniString = "[vmconfig] @@ -97,10 +98,10 @@ OUTPUT_FORMAT=$outputFormat"; die("Could not connect to database ".mysqli_connect_error()); } - $query = "INSERT INTO builds (id, handle, ipaddress) ". - "VALUES(?, ?, ?)"; + $query = "INSERT INTO builds (id, handle, ipaddress, email) ". + "VALUES(?, ?, ?, ?)"; $stmt = $db->prepare($query); - $stmt->bind_param("sss", $buildID, $handle, $ipaddress); + $stmt->bind_param("ssss", $buildID, $handle, $ipaddress, $email); $stmt->execute(); $stmt->close(); $db->close(); |