@@ -245,13 +245,13 @@ |
||
| 245 | 245 | break; |
| 246 | 246 | |
| 247 | 247 | case 'nests': |
| 248 | - ?> |
|
| 248 | + ?> |
|
| 249 | 249 | |
| 250 | 250 | <script src="core/js/nests.maps.js.php"></script> |
| 251 | 251 | <script src="https://maps.googleapis.com/maps/api/js?key=<?= $config->system->GMaps_Key ?>&libraries=visualization&callback=initMap"></script> |
| 252 | 252 | |
| 253 | 253 | <?php |
| 254 | - break; |
|
| 254 | + break; |
|
| 255 | 255 | } |
| 256 | 256 | } |
| 257 | 257 | ?> |
@@ -15,16 +15,16 @@ |
||
| 15 | 15 | $lang = $config->system->forced_lang; |
| 16 | 16 | $config->system->forced_lang = $lang; |
| 17 | 17 | |
| 18 | - # Send Javascript header |
|
| 19 | - header('Content-type: text/javascript'); |
|
| 20 | - # Load Config |
|
| 21 | - include_once('../../config.php'); |
|
| 22 | - include_once('../process/locales.loader.php'); |
|
| 23 | - # Load nests-file |
|
| 18 | + # Send Javascript header |
|
| 19 | + header('Content-type: text/javascript'); |
|
| 20 | + # Load Config |
|
| 21 | + include_once('../../config.php'); |
|
| 22 | + include_once('../process/locales.loader.php'); |
|
| 23 | + # Load nests-file |
|
| 24 | 24 | $nest_file = file_get_contents('../json/nests.stats.json'); |
| 25 | 25 | $nests = json_decode($nest_file, true); |
| 26 | 26 | |
| 27 | - ?> |
|
| 27 | + ?> |
|
| 28 | 28 | |
| 29 | 29 | function initMap() { |
| 30 | 30 | $.getJSON( "core/json/variables.json", function( variables ) { |
@@ -5,8 +5,8 @@ discard block |
||
| 5 | 5 | |
| 6 | 6 | <?php |
| 7 | 7 | |
| 8 | - $filePath = dirname(__FILE__); |
|
| 9 | - $config_file = $filePath.'/../../config.php'; |
|
| 8 | + $filePath = dirname(__FILE__); |
|
| 9 | + $config_file = $filePath.'/../../config.php'; |
|
| 10 | 10 | include_once($config_file); |
| 11 | 11 | $variables = $filePath.'/../json/variables.json'; |
| 12 | 12 | $config = json_decode(file_get_contents($variables)); |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | include_once('../../config.php'); |
| 22 | 22 | include_once('../process/locales.loader.php'); |
| 23 | 23 | # Load nests-file |
| 24 | - $nest_file = file_get_contents('../json/nests.stats.json'); |
|
| 24 | + $nest_file = file_get_contents('../json/nests.stats.json'); |
|
| 25 | 25 | $nests = json_decode($nest_file, true); |
| 26 | 26 | |
| 27 | 27 | ?> |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | GROUP BY pokemon.spawnpoint_id, pokemon.pokemon_id HAVING total_pokemon > 6 ORDER BY pokemon.pokemon_id "; |
| 14 | 14 | $result = $mysqli->query($req); |
| 15 | 15 | |
| 16 | -while($data = $result->fetch_object()) { |
|
| 16 | +while ($data = $result->fetch_object()) { |
|
| 17 | 17 | $pokeid = $data->pokemon_id; |
| 18 | 18 | $nests['pokemon_id'] = $data->pokemon_id; |
| 19 | 19 | $nests['total_pokemon'] = $data->total_pokemon; |
@@ -21,8 +21,8 @@ discard block |
||
| 21 | 21 | $nests['longitude'] = $data->longitude; |
| 22 | 22 | |
| 23 | 23 | // Add the datas in file |
| 24 | - $nestsdatas[] = $nests; |
|
| 25 | - $json = json_encode($nestsdatas); |
|
| 24 | + $nestsdatas[] = $nests; |
|
| 25 | + $json = json_encode($nestsdatas); |
|
| 26 | 26 | |
| 27 | 27 | file_put_contents(SYS_PATH.'/core/json/nests.stats.json', $json); |
| 28 | 28 | } |