Example #1
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('fla/gallery.swf', $w, $h, $fvars) . $add;
}
Example #2
0
File: ajax.php Project: philum/cms
     $ret = read_msg($id, 3);
     break;
 case "popvideo":
     req('pop,spe,tri');
     $t = 'video';
     $ret = jwplayer($id, 400);
     break;
     //
 //
 case "poppdf":
     $ret = pdfreader_j($id, $va);
     break;
 case "swf":
     req('pop');
     $t = 'swf';
     $ret = embed_flsh($id, $va, $opt, '');
     break;
 case "galj":
     req('pop');
     $ret = gallery_j_slct($va, $id, $opt);
     break;
 case "channel":
     req('pop,spe,art,tri,mod');
     $ret = channel($id, $va, $opt, $optb);
     break;
 case "shop":
     req('pop,spe,art,mod');
     $_SESSION['cart'][$id] += 1;
     $ret = m_pubart($_SESSION['cart'], '', '');
     break;
 case "mktable":
Example #3
0
File: pop.php Project: philum/cms
function jwplayer($doc, $l)
{
    $doc = goodroot($doc);
    $rid = randid();
    if (substr($doc, 0, 4) != 'http') {
        $bs = host() . '/';
    }
    $nm = $rid . 'emd' . substr(strrchr($doc, '/'), 0, 4);
    $add = divd($nm, lj('txtx', $nm . '_embed___' . ajx($bs . $doc, ''), 'source'));
    $flvr = '&controlbar=over&file=' . $bs . $doc . '&image=&mute=true&skin=video/lulu.xml&stretching=fill';
    //&plugins=viral-2d
    return embed_flsh("video/player.swf", $l, $l * 0.7, $flvr) . $add;
}
Example #4
0
File: pop.php Project: philum/cms
function flash_prep($f, $id)
{
    if ($f) {
        list($movie, $l, $h) = decide_size($f);
    }
    return embed_flsh($movie, '100%', '100%', $fvar);
}