getVillageField((int)$_POST['did'], 'owner') == $session->uid ) { $did = (int)$_POST['did']; $name = trim($_POST['name']); $database->createFarmList($did, $session->uid, $name); } else if ($isFarmlistPage && $postAction === 'addList') { header("Location: build.php?gid=16&t=99&action=addList"); exit; } } /* ========================= FARM LIST QUERY (CLEAN) ========================= */ $farmlists = mysqli_query( $database->dblink, "SELECT id, name, owner, wref FROM ".TB_PREFIX."farmlist WHERE owner = ".(int)$session->uid." ORDER BY wref DESC" ); ?>
getVillageField($lwref, 'name'); ?>
<?php echo DELETE; ?> -
dblink, "SELECT * FROM ".TB_PREFIX."raidlist WHERE lid = ".(int)$lid." ORDER BY distance ASC" ); $query2 = mysqli_num_rows($sql2); if (!$query2) { echo ''; } else { while ($row = mysqli_fetch_array($sql2)) { $id = $row['id']; $towref = $row['towref']; $x = $row['x']; $y = $row['y']; $distance = $row['distance']; for ($i = 1; $i <= 6; $i++) { ${'t'.$i} = $row['t'.$i]; } $vdata = $database->getVillage($towref); $oasistype = $database->getVillageType2($towref); ?>
'.NO_VILLAGES.'
getMovement(3, $towref, 1); $attacksCount = count($attacks); if ($attacksCount > 0) { foreach ($attacks as $attack) { if ($attack['attack_type'] != 4) { $attacksCount--; } } if ($attacksCount > 0) { echo ''; } } ?> tribe - 1) * 10 + 1; $end = $start + 5; for ($i = $start; $i <= $end; $i++) { $index = $i - $start + 1; if (${'t'.$index} > 0) { echo '
'.${'t'.$index}.'
'; } } ?>
dblink, "SELECT ntype, data, time, id FROM ".TB_PREFIX."ndata WHERE ntype < 4 AND toWref = ".(int)$towref." AND uid = ".(int)$session->uid." ORDER BY time DESC LIMIT 1" ); if (mysqli_num_rows($getnotice) > 0) { while ($row2 = mysqli_fetch_array($getnotice)) { $dataarray = explode(",", $row2['data']); $type2 = $row2['ntype']; echo ''; $allres = $dataarray[23] + $dataarray[24] + $dataarray[25] + $dataarray[26]; $carry = $dataarray[27]; echo ''; $date = $generator->procMtime($row2['time']); echo '' .$date[0]." ".substr($date[1],0,5).''; } } ?>
getVilFarmlist($session->uid)) { ?>