示例#1
0
function plug_rollovertopop($doc, $t)
{
    $id = 'curtain' . randid();
    //return imgico($a.'" onmouseover="this.src=\''.$b.'\'" onmouseout="this.src=\''.$a.'\'');
    list($v, $p) = split_one('�', $doc, 1);
    $img = make_thumb_d($v, $p);
    //
    $im = goodroot($v);
    list($l, $h) = getimagesize($im);
    $send = 'photo_' . str_replace("_", "*", $im) . '_' . $l . '_' . $h;
    if ($_SESSION['nl']) {
        $thumb = image($im, currentwidth(), '');
    }
    //$ret=ljb("","SaveBf",$send,$img);
    $oc = 'SaveBf(\'' . $send . '\')';
    $ov = 'getbyid(\'' . $id . '\').style.background-color:rgba(0,0,0,0);';
    $ret = lkh($oc, $ov, $thumb);
    $sty = 'position:absolute; width:340px; height:240px; background-color:rgba(0,0,0,0.5); text-align-center; vertical-align:center;';
    $title = divs('width:140px; height:40px; background-color:#;', $t);
    $ret .= div(' style="' . $sty . '" id="' . $id . '"', '');
    //return imgico($a.'" onmouseover="this.src=\''.$b.'\'" onmouseout="this.src=\''.$a.'\'');
    return $ret;
}
示例#2
0
文件: tri.php 项目: philum/cms
function miniconn_w($doc, $h)
{
    list($pd, $c) = split_one(':', $doc, 1);
    if ($c && $pd != 'http') {
        $d = sconn_defs_r($pd, $c);
        if ($d != $doc) {
            return $d;
        }
    }
    if ($c) {
        $d = sconn_defs_app($pd, $c, $h);
        if ($d) {
            return $d;
        }
    }
    list($p, $o) = split_one('§', $doc, 1);
    if ($o) {
        if (is_numeric($p) && $o) {
            return pop_art('http://' . $h . '/' . $p . '§' . $o);
        } elseif ($p && $o) {
            return lkt('', $p, pictxt('get', $o));
        }
    }
    $xt = strtolower(strrchr($doc, '.'));
    if ($xt == '.mp3') {
        $j = ajx(goodroot($doc, $h));
        return lj('', 'popup_popmp3___' . $j, pictxt('music', strrchr_b($doc, '/')));
    }
    if ($xt == '.pdf') {
        return pdfreader($doc);
    }
    if (is_image($doc)) {
        $im = goodroot($doc);
        if (@is_file($im)) {
            return popim($im, picto('img'));
        } elseif (strlen($doc) > 4) {
            return popim_w($im, $h);
        }
    }
    if (strpos($doc, "@") !== false && strpos($doc, '.') !== false) {
        return lka('mailto:' . $doc, strdeb($doc, '@'));
    }
    if (substr($doc, 0, 1) == '@') {
        return poptwit(substr($doc, 1));
    }
    //if(substr($doc,0,1)=='@')return plugin_func('tracks','track_answer',substr($doc,1),'');
    //if(substr($doc,0,1)=='#')return call_plug('','popup','chatxml',substr($doc,1),pictxt('chat',substr($doc,1)));
    if ($pd == 'http') {
        return lkt('', $doc, pictxt('get', http_domain($doc)));
    }
    return $doc;
}
示例#3
0
文件: pop.php 项目: 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;
}
示例#4
0
文件: pop.php 项目: philum/cms
function make_mini_c($doc)
{
    //conn_thumb //im§w/h
    list($v, $p) = split_one('§', $doc, 1);
    $img = make_thumb_d($v, $p);
    $im = goodroot($v);
    list($l, $h) = getimagesize($im);
    $send = 'photo_' . str_replace("_", "*", $im) . '_' . $l . '_' . $h;
    if ($_SESSION['nl']) {
        return image($im, currentwidth(), '');
    } else {
        return ljb('', 'SaveBf', $send, $img);
    }
}
示例#5
0
文件: ajxf.php 项目: philum/cms
function desk_css()
{
    $prmd = $_SESSION['prmd'];
    if ($_SESSION['negcss']) {
        $prmd .= '_neg';
    }
    $clr = $_SESSION['clrs'][$prmd];
    req('styl');
    $g = prma('desktop');
    //sesmk('desklr');
    if ($g) {
        req('spe');
        $g = goodroot($g);
    }
    if (is_dir($g)) {
        $ret = 'background:url(' . randimg($g) . ') no-repeat center fixed; background-size:cover;';
    } elseif (is_image($g)) {
        $ret = 'background:url(' . goodroot($g) . ') no-repeat center fixed; background-size:cover;';
    } elseif (strpos($g, ',') === false && $g) {
        $ret = 'background-color:' . affect_rgba($g, $clr) . ';';
        $klr = $g;
    } else {
        $g = affect_rgba($g, $clr);
        $gh = $g ? $g : '#' . $clr[4] . ',#' . $clr[2];
        $klr = medium_clr($gh);
        if (!$g) {
            $g = 'to bottom, ' . hexrgb($clr[4], 0.4) . ', ' . hexrgb($clr[1], 1) . '';
        }
        $ret = 'height:100%; 
	background:linear-gradient(' . $g . ') no-repeat fixed;';
    }
    return css_code('body {' . $ret . '}
	#desktop a, #desktop .philum {color:#' . invert_color($klr, 1) . ';}
	#page {padding:0; margin:0 40px 0 0; border:0; box-shadow:none;}');
}