syntaxer run

git-svn-id: http://www.observium.org/svn/observer/trunk@3185 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2012-05-15 15:18:57 +00:00
parent 1f9eae3699
commit 4985943822
44 changed files with 65 additions and 97 deletions
+6 -8
View File
@@ -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;
}