Permalink
Browse files

Update index.php

  • Loading branch information...
FinlayDaG33k committed Mar 7, 2017
1 parent 1b0bede commit 85c95a1a369fd1c1446a2c235df83db515fc7e55
Showing with 3 additions and 4 deletions.
  1. +3 −4 index.php
@@ -1,7 +1,7 @@
<?php
function update($data){
echo count($data);
for($i = 0;$i <= count($data);$i++){
//echo count($data);
for($i = 0;$i < count($data['buildings']);$i++){
echo $i . "<br />";
$data['buildings'][$i]['isUnderConstruction'] = false;
$data['buildings'][$i]['constructionCounter'] = 0;
@@ -18,8 +18,7 @@ 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['buildings'][261])) . "<br /><br /><br />";
echo json_encode(update($mcz));
//echo base64_encode(json_encode(update($mcz)));
}else{

0 comments on commit 85c95a1

Please sign in to comment.