mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-24 10:56:43 +08:00
update: now cannot delete movements of another player
This commit is contained in:
@@ -212,7 +212,7 @@ 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