Permalink
Browse files

Update index.php

  • Loading branch information...
FinlayDaG33k committed Mar 7, 2017
1 parent 85c95a1 commit c4247679328dda6d3272ddb584c95f71e8f8a9c8
Showing with 3 additions and 3 deletions.
  1. +3 −3 index.php
@@ -2,7 +2,7 @@
function update($data){
//echo count($data);
for($i = 0;$i < count($data['buildings']);$i++){
echo $i . "<br />";
//echo $i . "<br />";
$data['buildings'][$i]['isUnderConstruction'] = false;
$data['buildings'][$i]['constructionCounter'] = 0;
$data['buildings'][$i]['constructionPercentage'] = 0;
@@ -19,8 +19,8 @@ function update($data){
$mcz = json_decode(base64_decode(file_get_contents($_FILES['mcz']['tmp_name'])),1);
//echo json_encode($mcz['buildings'][259]);
//echo json_encode(update($mcz['buildings'][261])) . "<br /><br /><br />";
echo json_encode(update($mcz));
//echo base64_encode(json_encode(update($mcz)));
//echo json_encode(update($mcz));
echo base64_encode(json_encode(update($mcz)));
}else{
?>

0 comments on commit c424767

Please sign in to comment.