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 | |||||
11 | $template = "INSERT INTO messages VALUES (NULL, $killerid, $victimid, NULL, $msgcontent)"; | ||||
12 | if (!query($template)) die("An error ocurred." . $template); | ||||
13 | |||||
14 | header("Location: http://pastanagapp2020.mygamesonline.org/main.php"); | ||||
15 | ?> |