mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
Merge pull request #470 from itrack/master
Add correct data about winner
This commit is contained in:
@@ -689,6 +689,12 @@ class Automation {
|
||||
}
|
||||
}
|
||||
|
||||
// Update ww last finish upgrade
|
||||
if ($indi['type'] == 40) {
|
||||
$qW = "UPDATE ".TB_PREFIX."fdata set ww_lastupdate = ".time()." where vref = ".(int) $indi['wid'];
|
||||
$database->query($qW);
|
||||
}
|
||||
|
||||
$dbIdsToDelete[] = (int) $indi['id'];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
-- 7.01.2018 -> new column
|
||||
ALTER TABLE s1_fdata ADD `ww_lastupdate` int(11) NULL DEFAULT NULL AFTER `wwname`;
|
||||
|
||||
-- 2.12.2017 -> new indexes
|
||||
ALTER TABLE `s1_vdata` ADD INDEX(`exp1`);
|
||||
ALTER TABLE `s1_vdata` ADD INDEX(`exp2`);
|
||||
|
||||
@@ -707,6 +707,7 @@ CREATE TABLE IF NOT EXISTS `%PREFIX%fdata` (
|
||||
`f99` tinyint(2) NULL DEFAULT '0',
|
||||
`f99t` tinyint(2) NULL DEFAULT '0',
|
||||
`wwname` varchar(100) NULL DEFAULT 'World Wonder',
|
||||
`ww_lastupdate` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`vref`),
|
||||
KEY `f99` (`f99`),
|
||||
KEY `f99t` (`f99t`)
|
||||
|
||||
+4
-1
@@ -155,6 +155,9 @@ else {
|
||||
|
||||
$sql = mysqli_query($GLOBALS['link'],"SELECT tag FROM ".TB_PREFIX."alidata WHERE id = '$allianceid'")or die(mysqli_error($database->dblink));
|
||||
$winningalliancetag = mysqli_result($sql, 0);
|
||||
|
||||
$sql = mysqli_query($GLOBALS['link'],"SELECT ww_lastupdate FROM ".TB_PREFIX."fdata WHERE vref = '$vref'");
|
||||
$finishconstruction = mysqli_result($sql, 0);
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
@@ -213,7 +216,7 @@ else {
|
||||
|
||||
The results: Day had long since passed into night, yet the workers in <?php echo "<a href=\"karte.php?d=$vref&c=".$generator->getMapCheck($vref)."\">$winningvillagename</a>"; ?>,
|
||||
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 rewarded at <b><?php echo date('H:i:s'); ?></b> on <b><?php echo date('d. M. Y'); ?></b> after a
|
||||
threat that had ever faced the free people. Their tireless struggles were rewarded at <b><?php echo date('H:i:s', $finishconstruction); ?></b> on <b><?php echo date('d. M. Y', $finishconstruction); ?></b> 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<br /><br />
|
||||
|
||||
Together with the alliance "<?php echo "<a href=\"allianz.php?aid=$allianceid\">$winningalliancetag</a>"; ?>", "<?php echo "<a href=\"spieler.php?uid=$owner\">$username</a>"; ?>"
|
||||
|
||||
Reference in New Issue
Block a user