Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
FinlayDaG33k committed Mar 7, 2017
1 parent c6ecf47 commit f1d532c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions index.php
@@ -1,4 +1,12 @@
<?php <?php
function update($data){
for($i = 0;$i <= count($data);$i++){
$data['buildings'][$i]['isUnderConstruction'] = 0;
}

return $data;
}

if (!empty($_FILES)){ if (!empty($_FILES)){
$mcz = json_decode(base64_decode(file_get_contents($_FILES['mcz']['tmp_name'])),1); $mcz = json_decode(base64_decode(file_get_contents($_FILES['mcz']['tmp_name'])),1);
echo json_encode($mcz['buildings']); echo json_encode($mcz['buildings']);
Expand Down

0 comments on commit f1d532c

Please sign in to comment.