Exemplo n.º 1
0
function humanmedia($media)
{
    global $rewrite_iftype;
    array_preg_replace($rewrite_iftype, $media);
    return $media;
}
Exemplo n.º 2
0
function fixiftype($type)
{
    global $rewrite_iftype;
    $type = array_preg_replace($rewrite_iftype, $type);
    return $type;
}
Exemplo n.º 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;
}
Exemplo n.º 4
0
function rewrite_ios_features($features)
{
    global $rewrite_ios_features;
    $type = array_preg_replace($rewrite_ios_features, $features);
    return $features;
}
Exemplo n.º 5
0
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);
}