mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
Updated network to support old style format, docs provided
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user