Andreu Huguet | fc1e833 | 2020-09-15 18:21:12 +0200 | [diff] [blame] | 1 | <?php |
| 2 | require '../credentials.php'; |
| 3 | require 'utils.php'; |
| 4 | |
| 5 | $credentials = new Credentials(); |
| 6 | |
| 7 | $victimid = $_POST["victim-id"]; |
| 8 | $killerid = $_POST["killer-id"]; |
| 9 | $msgcontent = $_POST["msg-content"]; |
| 10 | |
Andreu Huguet | 53d3202 | 2020-09-15 18:35:03 +0200 | [diff] [blame^] | 11 | $template = "INSERT INTO messages VALUES (NULL, $killerid, $victimid, NULL, '$msgcontent')"; |
Andreu Huguet | fc1e833 | 2020-09-15 18:21:12 +0200 | [diff] [blame] | 12 | if (!query($template)) die("An error ocurred." . $template); |
| 13 | |
| 14 | header("Location: http://pastanagapp2020.mygamesonline.org/main.php"); |
| 15 | ?> |