blob: 1c84caf372aaaf24b57c9b60eb53f285c67bc7f8 [file] [log] [blame]
Andreu Huguetfc1e8332020-09-15 18:21:12 +02001<?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 Huguet53d32022020-09-15 18:35:03 +020011 $template = "INSERT INTO messages VALUES (NULL, $killerid, $victimid, NULL, '$msgcontent')";
Andreu Huguetfc1e8332020-09-15 18:21:12 +020012 if (!query($template)) die("An error ocurred." . $template);
13
14 header("Location: http://pastanagapp2020.mygamesonline.org/main.php");
15?>