fix reports: now player can see reports of another player from alliance attacks and from village view and now can watch report in archive without error

This commit is contained in:
unknown
2012-04-07 23:08:29 +03:00
parent e0331f8f9a
commit 8e39b56226
14 changed files with 2905 additions and 15 deletions
+7
View File
@@ -1437,6 +1437,13 @@
$result = mysql_query($q, $this->connection);
return $this->mysql_fetch_all($result);
}
function getNotice2($id, $field) {
$q = "SELECT ".$field." FROM " . TB_PREFIX . "ndata where `id` = '$id'";
$result = mysql_query($q, $this->connection);
$dbarray = mysql_fetch_array($result);
return $dbarray[$field];
}
function addBuilding($wid, $field, $type, $loop, $time) {
$x = "UPDATE " . TB_PREFIX . "fdata SET f" . $field . "t=" . $type . " WHERE vref=" . $wid;