Files
werwolfonline.eu/gamelogreload.php
foin137 ca7588ec86 Prepare statements for sql queries, use (int) to avoid nonint inputs
The goal of this edit is to prevent sql injection.
For string inputs like player name -> prepare sql statements.
For other inputs that are integers -> cast to int via (int)
2020-04-05 18:16:30 +02:00

16 lines
441 B
PHP

<?php
include "includes.php";
header("Content-Type: text/html; charset=utf-8");
header('Cache-Control: no-cache, no-store, max-age=0, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past
header('Pragma: no-cache');
$spielID = (int)$_GET['game'];
if ($Result = $mysqli->query("SELECT * FROM ".$spielID."_game"))
{
$temp = $Result->fetch_assoc();
echo $temp['log'];
}
?>