blob: ddeb60a9d8738ea38287bc0626bc9fe04a826944 [file] [log] [blame]
<?php
require '../credentials.php';
require 'utils.php';
$credentials = new Credentials();
$victimid = $_POST["victim-id"];
$killerid = $_POST["killer-id"];
$msgcontent = $_POST["msg-content"];
$template = "INSERT INTO `missatges` (`id`, `sender_id`, `receiver_id`, `timestamp`, `content`) VALUES (NULL, $killerid, $victimid, CURRENT_TIMESTAMP, '$msgcontent')";
if (!query($template)) die("An error ocurred." . $template);
header("Location: http://pastanagapp2020.mygamesonline.org/main.php");
?>