pageLoadTimeStart(); if(isset($_GET['newdid'])) { $_SESSION['wid'] = $_GET['newdid']; if(isset($_GET['w'])) { header("Location: ".$_SERVER['PHP_SELF']."?w=".$_GET['w']); } else if(isset($_GET['r'])) { header("Location: ".$_SERVER['PHP_SELF']."?r=".$_GET['r']); } else if(isset($_GET['o'])) { header("Location: ".$_SERVER['PHP_SELF']."?o=".$_GET['o']); } else if(isset($_GET['z'])) { header("Location: ".$_SERVER['PHP_SELF']."?z=".$_GET['z']); } else if($_GET['id']!=0){ header("Location: ".$_SERVER['PHP_SELF']); } } else { $building->procBuild($_GET); } if(isset($_GET['id'])) { $id = $_GET['id']; } if(isset($_GET['w'])) { $w = $_GET['w']; } if(isset($_GET['r'])) { $r = $_GET['r']; } if(isset($_GET['o'])) { $o = $_GET['o']; $oid = $_GET['z']; $too = $database->getOasisField($oid,"conqured"); if($too['conqured'] == 0){$disabledr ="disabled=disabled";}else{ $disabledr =""; } $disabled ="disabled=disabled"; $checked ="checked=checked"; } $process = $units->procUnits($_POST); $automation->isWinner(); ?> <?php echo SERVER_NAME ?> gpack == null || GP_ENABLE == false) { echo " "; } else { echo " "; } ?>
getEnforceArray($w, 0); if($enforce['vref'] == $village->wid) { $to = $database->getVillage($enforce['from']); $ckey = $w; include ("Templates/a2b/sendback_" . $database->getUserField($to['owner'], 'tribe', 0) . ".tpl"); } else { include ("Templates/a2b/units_" . $session->tribe . ".tpl"); include ("Templates/a2b/search.tpl"); } } else if(isset($r)) { $enforce = $database->getEnforceArray($r, 0); if($enforce['from'] == $village->wid) { $to = $database->getVillage($enforce['from']); $ckey = $r; include ("Templates/a2b/sendback_" . $database->getUserField($to['owner'], 'tribe', 0) . ".tpl"); } else { include ("Templates/a2b/units_" . $session->tribe . ".tpl"); include ("Templates/a2b/search.tpl"); } } else { if(isset($process['0'])) { $coor = $database->getCoor($process['0']); include ("Templates/a2b/attack.tpl"); } else { include ("Templates/a2b/units_" . $session->tribe . ".tpl"); include ("Templates/a2b/search.tpl"); } } ?>
pageLoadTimeEnd() - $start) * 1000); ?> ms