Exemplo n.º 1
0
Arquivo: ifrm.php Projeto: philum/cms
function ifrget($a, $b, $f)
{
    $f = ajxg($f);
    if ($f) {
        $f = str_replace(array("\n", "\r"), ' ', $f);
        $r = explode(' ', $f);
        foreach ($r as $v) {
            $d = curl_get_contents($v);
            if (is_image($v) && $d) {
                $ret .= ifrim($v, $d);
            }
        }
    }
    return $ret;
}
Exemplo n.º 2
0
Arquivo: ifr.php Projeto: philum/cms
function ifrget($a, $b, $f)
{
    $f = ajxg($f);
    $f = http($f);
    if ($f) {
        $ret = curl_get_contents($f);
        if (is_image($f) && $ret) {
            $ret = ifrim($f, $ret);
        }
    }
    $encoding = embed_detect(strtolower($ret), "charset=", '"', "");
    if (strtolower($encoding) == "utf-8" or strpos($ret, 'é')) {
        $ret = utf8_decode_b($ret);
    }
    return $ret;
}
Exemplo n.º 3
0
Arquivo: ifram.php Projeto: philum/cms
function ifrget($a, $b, $f)
{
    $f = ajxg($f);
    $f = http($f);
    if ($a) {
        ifradd();
    }
    if ($f) {
        $ret = read_file($f);
        $ret = ifrcorr($ret, $f);
        if (is_image($f) && $ret) {
            $ret = ifrim($f, $ret);
        }
    }
    $encoding = embed_detect(strtolower($ret), "charset=", '"', "");
    if (strtolower($encoding) == "utf-8" or strpos($ret, 'é')) {
        $ret = utf8_decode_b($ret);
    }
    return $ret;
}