Merge pull request #1501 from laf/issue-1334-new

New overview page and new map
This commit is contained in:
Paul Gear
2015-07-26 14:33:34 +10:00
220 changed files with 92463 additions and 57 deletions

View File

@ -78,6 +78,14 @@ if ($device['location']) {
}
}
$loc = dbFetchRow("SELECT `lat`,`lng` FROM `locations` WHERE `location`=? LIMIT 1", array($device['location']));
if (is_array($loc)) {
echo '<tr>
<td>Lat / Lng</td>
<td>['.$loc['lat'].','.$loc['lng'].']</td>
</tr>';
}
if ($uptime) {
echo '<tr>
<td>Uptime</td>