From 7cbfd7acc975f7105f6689b4b38266d41a3f4a2e Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 17 Jun 2012 09:36:07 +0300 Subject: [PATCH] update: now cannot delete movements of another player --- build.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.php b/build.php index d7a45271..7039efb2 100644 --- a/build.php +++ b/build.php @@ -208,11 +208,11 @@ if($session->access != BANNED){ header("Location: banned.php"); } } -if ($_GET['mode']=='troops'&&$_GET['cancel']==1){ +if($_GET['mode']=='troops' && $_GET['cancel']==1){ if($session->access != BANNED){ $oldmovement=$database->getMovementById($_GET['moveid']); $now=time(); -if (($now-$oldmovement[0]['starttime'])<90){ +if(($now-$oldmovement[0]['starttime'])<90 && $oldmovement[0]['from'] == $village->wid){ $qc="SELECT * FROM " . TB_PREFIX . "movement where proc = 0 and moveid = ".$_GET['moveid']; $resultc=$database->query($qc) or die(mysql_error());