@@ -1,7 +1,7 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | $xml = simplexml_load_file('ig-data.xml'); |
| 3 | 3 | |
| 4 | -if (isset($_POST['gram'])){ |
|
| 4 | +if (isset($_POST['gram'])) { |
|
| 5 | 5 | $xml->addChild('instagram', $_POST['gram']); |
| 6 | 6 | $xml->saveXML(); |
| 7 | 7 | |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | <?php |
| 62 | 62 | $i = 0; |
| 63 | 63 | $xmlData = simplexml_load_file('ig-data.xml'); |
| 64 | - $grams = array_reverse( json_decode( json_encode($xmlData->instagram) , 1)); |
|
| 64 | + $grams = array_reverse(json_decode(json_encode($xmlData->instagram), 1)); |
|
| 65 | 65 | ?> |
| 66 | 66 | </pre> |
| 67 | 67 | <?php |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | |
| 133 | 133 | <pre> |
| 134 | 134 | <?php |
| 135 | - if ($_SERVER['HTTP_HOST'] == 'localhost' || $_SERVER['HTTP_HOST'] == '127.0.0.1'){ |
|
| 135 | + if ($_SERVER['HTTP_HOST'] == 'localhost' || $_SERVER['HTTP_HOST'] == '127.0.0.1') { |
|
| 136 | 136 | require_once ('instagallery-editor.php'); |
| 137 | 137 | } |
| 138 | 138 | ?> |