blob: ddeb60a9d8738ea38287bc0626bc9fe04a826944 [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 Huguetd5f9c422020-09-15 18:37:05 +020011 $template = "INSERT INTO `missatges` (`id`, `sender_id`, `receiver_id`, `timestamp`, `content`) VALUES (NULL, $killerid, $victimid, CURRENT_TIMESTAMP, '$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?>