Permalink
Browse files

Update index.php

  • Loading branch information...
FinlayDaG33k committed Mar 7, 2017
1 parent a48aad5 commit 23d6906caa35cc938488e91b10551256415de436
Showing with 3 additions and 2 deletions.
  1. +3 −2 index.php
@@ -1,7 +1,8 @@
<?php
function update($data){
echo count($data);
for($i = 0;$i <= count($data);$i++){
$data['buildings'][$i]['isUnderConstruction'] = 0;
$data['buildings'][$i]['isUnderConstruction'] = false;
$data['buildings'][$i]['constructionCounter'] = 0;
$data['buildings'][$i]['constructionPercentage'] = 0;
$data['buildings'][$i]['constructionProgress'] = null;
@@ -15,7 +16,7 @@ function update($data){
if (!empty($_FILES)){
$mcz = json_decode(base64_decode(file_get_contents($_FILES['mcz']['tmp_name'])),1);
echo base64_encode(json_encode(update($mcz)));
echo json_encode(update($mcz));
}else{
?>

0 comments on commit 23d6906

Please sign in to comment.