|
@@ -5,7 +5,7 @@ discard block |
|
|
block discarded – undo |
|
5
|
5
|
$Source = new Source(); |
|
6
|
6
|
|
|
7
|
7
|
if (isset($_GET['sourceid'])) { |
|
8
|
|
- $sourceid = filter_input(INPUT_GET,'sourceid',FILTER_SANITIZE_NUMBER_INT); |
|
|
8
|
+ $sourceid = filter_input(INPUT_GET, 'sourceid', FILTER_SANITIZE_NUMBER_INT); |
|
9
|
9
|
$source_data = $Source->getLocationInfoById($sourceid); |
|
10
|
10
|
if (isset($source_data[0])) { |
|
11
|
11
|
?> |
|
@@ -41,8 +41,8 @@ discard block |
|
|
block discarded – undo |
|
41
|
41
|
print '</div>'; |
|
42
|
42
|
|
|
43
|
43
|
if ($spotter_item['city'] != '') print '<div><span>'._("City").'</span>'.$spotter_item['city'].'</div>'; |
|
44
|
|
-if ($spotter_item['country'] !='') print '<div><span>'._("Country").'</span>'.$spotter_item['country'].'</div>'; |
|
45
|
|
-print '<div><span>'._("Coordinates").'</span>'.round($spotter_item['latitude'],4).', '.round($spotter_item['longitude'],4).'</div>'; |
|
|
44
|
+if ($spotter_item['country'] != '') print '<div><span>'._("Country").'</span>'.$spotter_item['country'].'</div>'; |
|
|
45
|
+print '<div><span>'._("Coordinates").'</span>'.round($spotter_item['latitude'], 4).', '.round($spotter_item['longitude'], 4).'</div>'; |
|
46
|
46
|
/* |
|
47
|
47
|
if ($spotter_item['atc_range'] > 0) { |
|
48
|
48
|
print '<div><span>'._("Range").'</span>'; |
|
@@ -51,7 +51,7 @@ discard block |
|
|
block discarded – undo |
|
51
|
51
|
} |
|
52
|
52
|
*/ |
|
53
|
53
|
if ($spotter_item['type'] == 'wx') { |
|
54
|
|
- $weather = json_decode($spotter_item['description'],true); |
|
|
54
|
+ $weather = json_decode($spotter_item['description'], true); |
|
55
|
55
|
//print_r($weather); |
|
56
|
56
|
if (isset($weather['temp'])) print '<div><span>'._("Temperature").'</span>'.$weather['temp'].'°C</div>'; |
|
57
|
57
|
if (isset($weather['pressure'])) print '<div><span>'._("Pressure").'</span>'.$weather['pressure'].'hPa</div>'; |
|
@@ -62,7 +62,7 @@ discard block |
|
|
block discarded – undo |
|
62
|
62
|
if (isset($weather['precipitation24h'])) print '<div><span>'._("Precipitation Today").'</span>'.$weather['precipitation24h'].' mm</div>'; |
|
63
|
63
|
$spotter_item['description'] = $weather['comment']; |
|
64
|
64
|
} elseif ($spotter_item['type'] == 'fires') { |
|
65
|
|
- print_r(json_decode($spotter_item['description'],true)); |
|
|
65
|
+ print_r(json_decode($spotter_item['description'], true)); |
|
66
|
66
|
} |
|
67
|
67
|
print '</div>'; |
|
68
|
68
|
if ($spotter_item['type'] != 'wx' && $spotter_item['type'] != 'fires') { |