diff --git a/Admin/Templates/update.tpl b/Admin/Templates/update.tpl index 3e050d83..46336a1a 100644 --- a/Admin/Templates/update.tpl +++ b/Admin/Templates/update.tpl @@ -1,61 +1,70 @@ open('update.zip') === TRUE) + { + $zip->extractTo('../'); + $zip->close(); + unlink('update.zip'); + echo "Successfully Updated to Version $dl ";; + } + else + { + echo 'Failed to update to Version $dl'; + } + } } - $zip = new ZipArchive; - if ($zip->open('update.zip') === TRUE) - { - $zip->extractTo('../'); - $zip->close(); - unlink('update.zip'); - header("Location: admin.php?p=update&s"); - } else {echo 'Update Failed';} } ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - -
System Updates
Current Version :
Latest Version :
Check for Update
UpdateUpdate Success';} - elseif($latest > $ver) - {echo'
'; } - else { echo "No updates Avaiable";}?>
Visit Forum


-

Guys don`t forget to register at the forum to receive information of the updates"

\ No newline at end of file + + + System Updates + + + + + Current Version : + + + + Latest Version : + + + + Check for Update +
+ + + Update + $ver) + { + echo'
'; + } + else + { + echo "No updates Avaiable"; + } + ?> + + + \ No newline at end of file diff --git a/GameEngine/Building.php b/GameEngine/Building.php index 131097ab..fee43898 100644 --- a/GameEngine/Building.php +++ b/GameEngine/Building.php @@ -698,7 +698,7 @@ class Building { $q = "UPDATE ".TB_PREFIX."fdata set f".$jobs['field']." = ".$jobs['level'].", f".$jobs['field']."t = ".$jobs['type']." where vref = ".$jobs['wid']; } } - if($database->query($q) && ($enought_res == 1 or $jobs['master'])) { + if($database->query($q) && ($enought_res = 1 or $jobs['master'])) { $database->modifyPop($jobs['wid'],$resource['pop'],0); $database->addCP($jobs['wid'],$resource['cp']); $q = "DELETE FROM ".TB_PREFIX."bdata where id = ".$jobs['id'];