mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-23 19:47:13 +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");
|
header("Location: banned.php");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($_GET['mode']=='troops'&&$_GET['cancel']==1){
|
if($_GET['mode']=='troops' && $_GET['cancel']==1){
|
||||||
if($session->access != BANNED){
|
if($session->access != BANNED){
|
||||||
$oldmovement=$database->getMovementById($_GET['moveid']);
|
$oldmovement=$database->getMovementById($_GET['moveid']);
|
||||||
$now=time();
|
$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'];
|
$qc="SELECT * FROM " . TB_PREFIX . "movement where proc = 0 and moveid = ".$_GET['moveid'];
|
||||||
$resultc=$database->query($qc) or die(mysql_error());
|
$resultc=$database->query($qc) or die(mysql_error());
|
||||||
|
|||||||
Reference in New Issue
Block a user