Skip to content

Commit

Permalink
Update dorf2.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadowss committed Feb 16, 2014
1 parent fae5e45 commit 0cf063b
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions dorf2.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,6 @@
}else{
$building->procBuild($_GET);
}
if(isset($_GET['master']) && isset($_GET['id']) && isset($_GET['time']) && $session->gold >= 1 && $session->goldclub && $village->master == 0) {
if($session->access!=BANNED){
$level = $database->getResourceLevel($village->wid);
$database->addBuilding($village->wid, $_GET['id'], $_GET['master'], 1, $_GET['time'], 1, $level['f'.$_GET['id']] + 1 + count($database->getBuildingByField($village->wid,$_GET['id'])));
header("Location: ".$_SERVER['PHP_SELF']);
}else{
header("Location: banned.php");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Expand Down Expand Up @@ -106,4 +97,4 @@
</div>
<div id="ce"></div>
</body>
</html>
</html>

0 comments on commit 0cf063b

Please sign in to comment.