mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
syntaxer run
git-svn-id: http://www.observium.org/svn/observer/trunk@3185 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,24 +1,22 @@
|
||||
<?php
|
||||
|
||||
|
||||
function rewrite_location($location){
|
||||
|
||||
function rewrite_location($location)
|
||||
{
|
||||
// FIXME -- also check the database for rewrites?
|
||||
global $config, $debug;
|
||||
|
||||
global $config;
|
||||
global $debug;
|
||||
|
||||
if(isset($config['location_map'][$location]))
|
||||
if (isset($config['location_map'][$location]))
|
||||
{
|
||||
$location = $config['location_map'][$location];
|
||||
}
|
||||
return $location;
|
||||
|
||||
return $location;
|
||||
}
|
||||
|
||||
function formatMac($mac)
|
||||
{
|
||||
$mac = preg_replace("/(..)(..)(..)(..)(..)(..)/", "\\1:\\2:\\3:\\4:\\5:\\6", $mac);
|
||||
|
||||
return $mac;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user