function humanmedia($media) { global $rewrite_iftype; array_preg_replace($rewrite_iftype, $media); return $media; }
function fixiftype($type) { global $rewrite_iftype; $type = array_preg_replace($rewrite_iftype, $type); return $type; }
function rewrite_ifname($inf, $htmlentities = TRUE) { //$inf = strtolower($inf); // ew. -tom $inf = array_str_replace($GLOBALS['rewrite_ifname'], $inf); $inf = array_preg_replace($GLOBALS['rewrite_ifname_regexp'], $inf); if ($htmlentities) { $inf = htmlentities($inf); } // By default use htmlentities return $inf; }
function rewrite_ios_features($features) { global $rewrite_ios_features; $type = array_preg_replace($rewrite_ios_features, $features); return $features; }
function rewrite_ifname($inf) { //$inf = strtolower($inf); // ew. -tom $inf = array_str_replace($GLOBALS['rewrite_ifname'], $inf); $inf = array_preg_replace($GLOBALS['rewrite_ifname_regexp'], $inf); return ucfirst($inf); }