Updated network to support old style format, docs provided

This commit is contained in:
laf
2015-08-01 18:14:55 +00:00
parent 8a54cddaf2
commit 3484581dd6
5 changed files with 279 additions and 2 deletions
+10 -1
View File
@@ -14,4 +14,13 @@
$pagetitle[] = 'Map';
require_once 'includes/print-map.inc.php';
if ($config['gui']['network-map']['style'] == 'old') {
echo '
<center style="height:100%">
<object data="network-map.php?device='.$device['device_id'].'&format=svg" type="image/svg+xml" style="width: 100%; height:100%"></object>
</center>
';
}
else {
require_once 'includes/print-map.inc.php';
}
+7 -1
View File
@@ -11,4 +11,10 @@
* the source code distribution for details.
*/
$pagetitle[] = 'Map';
require_once 'includes/print-map.inc.php';
if ($config['gui']['network-map']['style'] == 'old') {
print_error('You are using the old style network map, a global map is not available');
}
else {
require_once 'includes/print-map.inc.php';
}