Permalink
Browse files

Update index.php

  • Loading branch information...
FinlayDaG33k committed Mar 7, 2017
1 parent 23d6906 commit 1b0bede01c4aa8d69fc3c5f6a26ab97aa418c8c1
Showing with 5 additions and 0 deletions.
  1. +5 −0 index.php
@@ -2,6 +2,7 @@
function update($data){
echo count($data);
for($i = 0;$i <= count($data);$i++){
echo $i . "<br />";
$data['buildings'][$i]['isUnderConstruction'] = false;
$data['buildings'][$i]['constructionCounter'] = 0;
$data['buildings'][$i]['constructionPercentage'] = 0;
@@ -16,7 +17,11 @@ function update($data){
if (!empty($_FILES)){
$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)));
}else{
?>

0 comments on commit 1b0bede

Please sign in to comment.