From 33143e94051a26f101dcd8910f5634463170b27f Mon Sep 17 00:00:00 2001 From: Martin Ambrus Date: Fri, 20 Oct 2017 01:08:35 +0200 Subject: [PATCH] fix: missing mysqli_result() function for the winning page --- winner.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/winner.php b/winner.php index 03e35eec..99606919 100644 --- a/winner.php +++ b/winner.php @@ -18,6 +18,14 @@ ## ## ################################################################################# +if (!function_exists('mysqli_result')) { + function mysqli_result($res, $row, $field=0) { + $res->data_seek($row); + $datarow = $res->fetch_array(); + return $datarow[$field]; + } +} + include("GameEngine/Village.php"); $start = $generator->pageLoadTimeStart(); if(isset($_GET['newdid'])) { @@ -203,7 +211,7 @@ $q = " The results: Day had long since passed into night, yet the workers in getMapCheck($vref)."\">$winningvillagename"; ?>, laboured on throught the wintery eve, every wary of the countless armies marching to destroy their work, knowing that they raced against time and the greatest - threat that had ever faced the free people. Their tireless struggles were rewared at on after a + threat that had ever faced the free people. Their tireless struggles were rewarded at on after a nameless worker laid the dinal stone in what will forever known as the greatest and most magnificent creation in all of history since the fall of the Natars

Together with the alliance "$winningalliancetag"; ?>", "$username"; ?>"