mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-03 11:04:24 +00:00
update: now cannot delete movements of another player
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user