Exemple #1
0
function plug_player()
{
    $movie = '../fla/rss.swf';
    //$js=script_for_flash_b($movie,"100%","100%",$fvar);
    //Head::add('jscode',$js);
    $clr = $_SESSION['clr'][$_SESSION['prmd']];
    $clr = msql_read('design', $_SESSION["qb"] . '_clrset_1', '');
    if (!$clr) {
        $clr = msql_read('system', 'default_clr', '');
    }
    //p($clr);
    $fvar = '&servr=http://' . $_SERVER['HTTP_HOST'] . '/&hub=' . $_SESSION["qb"] . '&clr1=' . $clr[1] . '&clr2=' . $clr[2] . '&clr3=' . $clr[3] . '&clr4=' . $clr[4] . '&clr5=' . $clr[5] . '&clr6=' . $clr[6] . '&clr7=' . $clr[7] . '&clr8=' . $clr[8];
    //.'&read_art=&category=&background_img=&order=day_DESC''&nbj='.$_GET['nbj'].
    //$ret=embed_flsh($movie,"100%","100%",$fvar);
    $ret = embed_flsh_obj($movie, "100%", "100%", $fvar);
    ////player
    return $ret;
}
Exemple #2
0
 case "video":
     req('pop,spe');
     list($w, $h) = explode('-', $sz);
     $s = $w;
     $ret = video_auto($id . '§' . $w . '/' . $h, '', '', 3);
     $t = $id;
     break;
 case "popflv":
     req('pop');
     $ret = jwplayer($id, $va);
     $t = 'flv_video';
     break;
 case "popmp3":
     req('pop');
     $t = $id;
     $ret = embed_flsh_obj('fla/mp3.swf', 300, 40, 'soundFile=' . $id);
     break;
 case "popim":
     list($w, $h) = getimagesize($id);
     $ret = photo_screen($id, $w, $h, $res);
     break;
 case "poptxt":
     req('tri');
     $ret = nl2br(convertmail(read_file($id)));
     $t = $id;
     $s = 440;
     break;
 case "popmsql":
     $r = msql_read($id, $va, $opt, 1);
     p($r);
     if ($r) {
Exemple #3
0
function embed_gallery($f, $id)
{
    $w = currentwidth();
    $h = $w * (3 / 4);
    if (!$f) {
        $cachefile = $id;
    } else {
        $cachefile = $f;
    }
    $fvars = '&servr=' . host() . '/&rot=' . $cachefile . '&clr=' . $_SESSION['clrs'][$_SESSION['prmd']][6];
    $file = 'gallery/cache/' . str_replace("/", "--", $cachefile . '/') . '.php';
    $goto = 'gallery/gal.php?root=' . $f . '&pid=' . $id . '&rebuild==';
    if (!is_file($file)) {
        return lkt('red', $goto, picto('alert'));
    }
    if ($_SESSION['USE']) {
        $add = lkt('', $goto, picto('builders'));
    }
    return embed_flsh_obj('fla/gallery.swf', $w, $h, $fvars) . $add;
}
Exemple #4
0
function finder_reader($d, $dist)
{
    req('pop');
    $id = randid();
    $dr = fi_droot();
    $f = $dr . $d;
    $dj = ajx($d) . '_' . $id;
    $xt = xtb($f);
    $ret .= blj('', randid() . 'fidel', 'fifunc___fi*del_' . ajx($d), fi_pic('delete')) . br();
    if ($xt) {
        if (strpos('.jpg.png.gif', $xt) !== false && is_file($f)) {
            $ret .= fi_show_img_b($f, '') . ' ';
        }
    }
    switch ($xt) {
        case '.swf':
            $ret .= fi_show_swf(host() . '/' . $f);
            break;
            //popswf($d);
        //popswf($d);
        case '.mp3':
            $ret .= embed_flsh_obj('../fla/mp3.swf', 300, 40, 'soundFile=' . $f);
            break;
        case '.txt':
            $ret .= lj('', 'popup_poptxt___' . ajx($f, ''), fi_pic('pdf', 32));
            break;
        case '.flv':
            $ret .= lj('', 'popup_popvideo___' . ajx($f), fi_pic('play', 32));
            break;
        case '.mp4':
            $ret .= lj('', 'popup_popvideo___' . ajx($f), fi_pic('play', 32));
            break;
        case '.pdf':
            $ret .= lj('', 'popup_poppdf___' . ajx(host() . '/' . $f), fi_pic('pdf', 32));
            break;
    }
    //if($ret)$ret=br().br().$ret;
    return fi_finfo($d, $id, $f, $dj) . $ret;
}
Exemple #5
0
function sconn($doc)
{
    //artwedit
    list($pdoc, $xf) = split_one(':', $doc, 1);
    if ($xf && $pdoc != 'http') {
        $d = sconn_defs_r($pdoc, $xf);
        if ($d != $doc) {
            return $d;
        }
    }
    if ($xf) {
        $d = sconn_defs_app($pdoc, $xf);
        if ($d) {
            return $d;
        }
    }
    $xt = strtolower(strrchr($doc, "."));
    if ($xt == ".mp3") {
        $doc = goodroot($doc);
        //mp3
        return embed_flsh_obj('fla/mp3.swf', "300", "40", 'soundFile=' . $doc);
    }
    if ($xt == ".pdf") {
        return pdfdoc($doc, 'img/', $media);
    }
    //pdf
    if (is_image($doc) && strpos($doc, "§") === false && strpos($doc, "<") === false) {
        //images
        $large = currentwidth() - 20;
        $largb = round($large * 0.5);
        if (strpos($doc, "http") !== false) {
            return image($doc);
        }
        return place_image($doc, $media, $large, $largb, "", "");
    }
    if (strpos($doc, "§") or strpos($doc, "http") !== false or strpos($doc, "@") !== false) {
        //liens
        $lk = prepdlink($doc);
        if (is_image($lk[0])) {
            if (strpos($lk[0], "http") !== false) {
                return image($lk[0]);
            }
            return popim(goodroot($lk[0]), $lk[1]);
        } elseif (is_image($lk[1]) == true) {
            //link§im
            if (is_numeric($lk[0])) {
                $lk[0] = urlread($lk[0]);
            }
            if (strpos($lk[1], "http") !== false) {
                return lka($lk[0], $lk[1]);
            }
            return lkc("", $lk[0], place_image($lk[1], $media, $large, $largb, "", ""));
        } elseif (strpos($lk[0], "http") !== false) {
            return lka($lk[0], $lk[1]);
        } elseif (strpos($lk[0], "/") !== false) {
            return lka(goodroot($lk[0]), $lk[1]);
        } elseif (substr($lk[0], 0, 1) == "/") {
            return lka($lk[0], $lk[1]);
        } elseif (strpos($lk[0], "@") !== false && strpos($lk[0], ".") !== false) {
            return lkc("", 'mailto:' . $lk[0], $lk[1]);
        } elseif (strpos($doc, "@") !== false && strpos($doc, ".") !== false) {
            return lkc("", 'mailto:' . $doc, $doc);
        } elseif (is_numeric($lk[0])) {
            return jread('', $lk[0], $lk[1]);
        }
    }
    return $doc;
}