getVillageField($_POST['did'], 'owner') == $session->uid){ $database->createFarmList($_POST['did'], $session->uid, $_POST['name']); }else if(isset($_GET['t']) == 99 && isset($_POST['action']) == 'addList'){ header("Location: build.php?gid=16&t=99&action=addList"); exit; } ?>
dblink,"SELECT id, name, owner, wref FROM ".TB_PREFIX."farmlist WHERE owner = ".(int) $session->uid." ORDER BY wref DESC"); $query = mysqli_num_rows($sql); while($row = mysqli_fetch_array($sql)){ $lid = $row["id"]; $lname = $row["name"]; $lowner = $row["owner"]; $lwref = $row["wref"]; $lvname = $database->getVillageField($row["wref"], 'name'); ?>
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']; $lid = $row['lid']; $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); ?>
Village Pop Distance Troops Last raid
'.NO_VILLAGES.'
getMovement(3, $towref, 1); if (($attacksCount = count($attacks)) > 0) { foreach($attacks as $attack){ if($attack['attack_type'] != 4) $attacksCount -= 1; } if($attacksCount > 0) echo ''; } ?> -"; }; ?> tribe - 1) * 10 + 1; $end = $start + 5; for($i = $start; $i <= $end; $i++){ if(${'t'.($i - $start + 1)} > 0){ echo '
'.${'t'.($i - $start + 1)}.'
'; } } ?>
dblink,"SELECT ntype, data, time, id FROM ".TB_PREFIX."ndata WHERE $limits 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]." ".date('H:i',$row2['time'])." "; } } ?>
edit

getVilFarmlist($session->uid)){ ?>