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['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);?> />
Bonus:
getUnit($_GET['d']); $unarray = array(31=>U31,U32,U33,U34,U35,U36,U37,U38,U39,U40); $a = 0; for ($i = 31; $i <= 40; $i++) { if($unit['u'.$i]){ // 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 ''; }else{ $a = $a+1; } } if($a == 10){ echo ''; } ?>
:
'.$unarray[$i].''.$unit['u'.$i].''.$unarray[$i].'
uid == $database->getVillage($_GET['d'])){ $limit = "ntype=0 and ntype=4 and ntype=5 and ntype=6 and ntype=7"; }else{ $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14 AND ntype!=15 AND ntype!=16 AND 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 != 0){ 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 != 0){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic=$row['topic']; echo ""; } }else{ ?>
:
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
"; if($type==18 or $type==19 or $type==20 or $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 ' '; ?>
Tribe
Alliance '.$database->getUserAlliance($oasis['owner']).'
Owner getUserField($oasis['owner'],'username',0); ?>
Village getVillageField($oasis['conqured'], "name");?>
Bonus:
uid == $database->getVillage($_GET['d'])){ $limit = "ntype=0 and ntype=4 and ntype=5 and ntype=6 and ntype=7 and ntype=20 and ntype=21"; }else{ $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14 and ntype!=15 and ntype!=16 and 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 != 0){ 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 != 0){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic=$row['topic']; echo ""; } }else{ ?>
Reports:
"; if($type==18 or $type==19 or $type==20 or $type==21){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
"; if($type==18 or $type==19 or $type==20 or $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'])){ $limit = "ntype=0 and ntype=4 and ntype=5 and ntype=6 and ntype=7"; }else{ $limit = "ntype!=8 and ntype!=9 and ntype!=10 and ntype!=11 and ntype!=12 and ntype!=13 and ntype!=14 AND ntype!=15 AND ntype!=16 AND 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 != 0){ 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 $limit AND uid = ".$session->uid." AND toWref = ".$toWref." ORDER BY time DESC Limit 5"); $query = mysqli_num_rows($result); if($query != 0){ while($row = mysqli_fetch_array($result)){ $dataarray = explode(",",$row['data']); $type = $row['ntype']; $topic=$row['topic']; echo ""; } }else{ ?>
:
"; if($type==18 or $type==19 or $type==20 or $type==21 or $type==22){ echo "\"".$topic."\""; }else{ echo " "; } $date = $generator->procMtime($row['time']); echo "".$date[0]." ".date('H:i',$row['time'])." "; echo "
"; if($type==18 or $type==19 or $type==20 or $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)); if($cps >= $need_cps) { $enough_cp = true; } else { $enough_cp = false; } if($village->unitarray['u'.$session->tribe.'0'] >= 3 AND $enough_cp AND $village->resarray['f39']) { $test = "» ".FNEWVILLAGE.""; } elseif($village->unitarray['u'.$session->tribe.'0'] >= 3 AND !$enough_cp) { $test = "» ".FNEWVILLAGE." ($cps/$need_cps ".CULTUREPOINT.")"; } elseif(!$village->resarray['f39']) { $test = "» ".FNEWVILLAGE." (".BUILDRALLY.")"; } else { $test = "» ".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' or ($data2['access']== MULTIHUNTER && $data2['id'] == 5) or (!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']? "» ".SENDTROOP : "» ".SENDTROOP." (".BUILDRALLY.")"; } else { echo "» ".SENDTROOP." (".BEGINPRO.")"; } ?>
getTypeLevel(17)? "getTypeField(17) . "\">» ".SENDMERC : "» ".SENDMERC ."(".BUILDMARKET.")"; } ?>