blob: 86f25987e99d5e09b1c64ab9c0f300f10e4ef203 [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 Huguet46ffb452020-09-15 18:35:24 +020011 $template = "INSERT INTO messages 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?>