getMInfo($_GET['d']); $uinfo = $database->getVillage($basearray['id']); $oasis1 = mysqli_query($database->dblink,'SELECT conqured, owner FROM `' . TB_PREFIX . 'odata` WHERE `wref` = ' . mysqli_real_escape_string($database->dblink,$_GET['d'])); $oasis = mysqli_fetch_assoc($oasis1); $access=$session->access; $oasislink = ''; ?>

(capital)
"; } if($uinfo && $uinfo['owner'] == 3 && $uinfo['name'] == PLANVILLAGE){ ?> <?php echo PLANVILLAGE;?> <?php 
switch($basearray['fieldtype']) {
case 1:
$tt =  25% ".LUMBER.""; break; case 3: $tt = "+25% ".LUMBER." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".LUMBER." and +25% ".CROP." ".PERHOUR; $ttt = " 25% ".LUMBER." 25% ".CROP.""; break; case 4: case 5: $tt = "+25% ".CLAY." ".PERHOUR."\" title=\"+25% ".CLAY." ".PERHOUR; $ttt = " 25% ".CLAY.""; break; case 6: $tt = "+25% ".CLAY." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".CLAY." and +25% ".CROP." ".PERHOUR; $ttt = " 25% ".CLAY." 25% ".CROP.""; break; case 7: case 8: $tt = "+25% ".IRON." ".PERHOUR."\" title=\"+25% ".IRON." ".PERHOUR; $ttt = " 25% ".IRON.""; break; case 9: $tt = "+25% ".IRON." and +25% ".CROP." ".PERHOUR."\" title=\"+25% ".IRON." and +25% ".CROP." ".PERHOUR; $ttt = " 25% ".IRON." 25% ".CROP.""; break; case 10: case 11: $tt = "+25% ".CROP." ".PERHOUR."\" title=\"+25% ".CROP." ".PERHOUR; $ttt = " 25% ".CROP.""; break; case 12: $tt = "+50% ".CROP." ".PERHOUR."\" title=\"+50% ".CROP." ".PERHOUR; $ttt = " 50% ".CROP.""; break; } break; } echo $tt."\""; $landd = explode("-",$tt);?> />
getUnit($_GET['d']); $unarray = array(31 => U31, U32, U33, U34, U35, U36, U37, U38, U39, U40); $troopsPresent = false; for ($i = 31; $i <= 40; $i++) { if($unit['u'.$i] > 0){ // assemble oasis warsim link if ($basearray['fieldtype'] == 0) { if (!$oasislink) $oasislink = rtrim(HOMEPAGE, '/').'/warsim.php?target=4'; $oasislink .= '&u'.$i.'='.$unit['u'.$i]; } echo ''; echo ''; echo ''; echo ''; echo ''; $troopsPresent = true; } } if(!$troopsPresent) echo ''; ?>
:
'.$unarray[$i].''.$unit['u'.$i].''.$unarray[$i].'
'.NOTROOP.'
getVillage($_GET['d']); if( $vilData && $session->uid == $vilData['owner'] ){ $limit = "ntype > 3 AND ntype < 8"; } else $limit = "ntype < 8 OR ntype > 17"; $toWref = $_GET['d']; if($session->alliance != 0){ $result = mysqli_query($database->dblink,"SELECT data, ntype, id, topic, time FROM ".TB_PREFIX."ndata WHERE ($limit) AND ally = ".$session->alliance." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysqli_num_rows($result); if($query){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic = $row['topic']; echo ""; } }else{ ?> dblink,"SELECT data, ntype, id, topic, time FROM ".TB_PREFIX."ndata WHERE uid = ".$session->uid." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysqli_num_rows($result); if($query){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic=$row['topic']; echo ""; } }else{ ?>
:
"; if($type >= 18 && $type <= 21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
"; if($type >= 18 && $type <= 21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
getUserArray($oasis['owner'],1); ?> -'; } else echo ' '; ?>
'.$database->getUserAlliance($oasis['owner']).'
getUserField($oasis['owner'],'username',0); ?>
getVillageField($oasis['conqured'], "name");?>
uid == $database->getVillage($_GET['d'])['owner']){ $limit = "(ntype > 3 AND ntype < 8) OR ntype = 20 OR ntype = 21"; } else $limit = "ntype < 8 OR ntype > 17"; $toWref = $_GET['d']; if($session->alliance != 0){ $result = mysqli_query($database->dblink,"SELECT data, ntype, id, topic, time FROM ".TB_PREFIX."ndata WHERE ($limit) AND ally = ".$session->alliance." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysqli_num_rows($result); if($query){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic = $row['topic']; echo ""; } }else{ ?> dblink,"SELECT data, ntype, id, topic, time FROM ".TB_PREFIX."ndata WHERE uid = ".$session->uid." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysqli_num_rows($result); if($query){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic = $row['topic']; echo ""; } }else{ ?>
"; if($type >= 18 && $type <= 21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
"; if($type >= 18 && $type <= 21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
<?php echo LUMBER;?>
<?php echo CLAY;?>
<?php echo IRON;?>
<?php echo CROP;?>
getUserArray($basearray['owner'],1); ?> -'; } else echo ' '; ?>
'.$database->getUserAlliance($basearray['owner']).'
getUserField($basearray['owner'],'username',0); ?>
uid == $database->getVillage($_GET['d'])['owner']){ $limit = "(ntype > 3 AND ntype < 8) OR ntype = 23"; } else $limit = "(ntype < 8 OR (ntype > 17 AND ntype < 22)) OR ntype = 22"; $toWref = $_GET['d']; if($session->alliance != 0){ $result = mysqli_query($database->dblink,"SELECT data, ntype, id, topic, time FROM ".TB_PREFIX."ndata WHERE ($limit) AND ally = ".$session->alliance." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysqli_num_rows($result); if($query){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = ($row['ntype'] == 23) ? 22 : $row['ntype']; $topic = $row['topic']; echo ""; } }else{ ?> dblink,"SELECT data, ntype, id, topic, time FROM ".TB_PREFIX."ndata WHERE ($limit) AND uid = ".$session->uid." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysqli_num_rows($result); if($query){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic=$row['topic']; echo ""; } }else{ ?>
:
"; if($type >= 18 && $type <= 22){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
"; if($type >= 18 && $type <= 21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
» .
getProfileVillages($session->uid)); $need_cps = ${'cp'.$mode}[$total + 1]; $cps = floor($database->getUserField($session->uid, 'cp',0)); $enough_cp = $cps >= $need_cps; if($village->unitarray['u'.$session->tribe.'0'] >= 3 && $enough_cp && $village->resarray['f39'] > 0) { $text = "» ".FNEWVILLAGE.""; } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 && !$enough_cp) { $text = "» ".FNEWVILLAGE." ($cps/$need_cps ".CULTUREPOINT.")"; } elseif(!$village->resarray['f39']) { $text = "» ".FNEWVILLAGE." (".BUILDRALLY.")"; } else { $text = "» ".FNEWVILLAGE." (".$village->unitarray['u'.$session->tribe.'0']."/3 ".SETTLERSAVAIL.")"; } if ($basearray['fieldtype'] == 0) { if ($village->resarray['f39'] == 0) { if ($basearray['owner'] == $session->uid) echo "» ".RAID." $otext (".BUILDRALLY.")"; else echo "» ".RAID." $otext (".BUILDRALLY.")"; } else { echo "» ".RAID." $otext"; } if ($oasislink) { ?>
» Combat Simulator
dblink,'SELECT * FROM `' . TB_PREFIX . 'odata` WHERE `wref` = ' . mysqli_escape_string($database->dblink,$_GET['d'])); }else{ $query1 = mysqli_query($database->dblink,'SELECT * FROM `' . TB_PREFIX . 'vdata` WHERE `wref` = ' . mysqli_real_escape_string($database->dblink,$_GET['d'])); } $data1 = mysqli_fetch_assoc($query1); $query2 = mysqli_query($database->dblink,'SELECT * FROM `' . TB_PREFIX . 'users` WHERE `id` = ' . $data1['owner']); $data2 = mysqli_fetch_assoc($query2); if($data2['access'] == 0 || ($data2['access']== MULTIHUNTER && $data2['id'] == 5) || (!ADMIN_ALLOW_INCOMING_RAIDS && $data2['access'] == 9)) { echo "» ".SENDTROOP." (".BAN.")"; } else if($data2['vac_mode']=='1') { echo "» Send troops. (Vacation mode on)"; } else if($data2['protect'] < time()) { echo $village->resarray['f39'] > 0 ? "» ".SENDTROOP : "» ".SENDTROOP." (".BUILDRALLY.")"; } else { echo "» ".SENDTROOP." (".BEGINPRO.")"; } ?>
getTypeLevel(17)? "getTypeField(17) . "\">» ".SENDMERC : "» ".SENDMERC ."(".BUILDMARKET.")"; } ?>