示例#1
0
function humanmedia($media)
{
    global $rewrite_iftype;
    array_preg_replace($rewrite_iftype, $media);
    return $media;
}
示例#2
0
function fixiftype($type)
{
    global $rewrite_iftype;
    $type = array_preg_replace($rewrite_iftype, $type);
    return $type;
}
示例#3
0
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;
}
示例#4
0
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);
}