Permalink
Browse files

Update index.php

  • Loading branch information...
FinlayDaG33k committed Mar 7, 2017
1 parent c6ecf47 commit f1d532c3ccfadaa2895bb11068a9e5f50686b3e2
Showing with 8 additions and 0 deletions.
  1. +8 −0 index.php
@@ -1,4 +1,12 @@
<?php
function update($data){
for($i = 0;$i <= count($data);$i++){
$data['buildings'][$i]['isUnderConstruction'] = 0;
}
return $data;
}
if (!empty($_FILES)){
$mcz = json_decode(base64_decode(file_get_contents($_FILES['mcz']['tmp_name'])),1);
echo json_encode($mcz['buildings']);

0 comments on commit f1d532c

Please sign in to comment.