Example #1
0
File: pop.php Project: philum/cms
function video_players($d, $p, $w, $h, $id)
{
    $w -= 40;
    $h = $w * 0.5600000000000001;
    if ($id) {
        $w = '100%';
    }
    if ($_SESSION['nl']) {
        return lkc('txtx', urlread($id), 'Video');
    }
    if ($p == 'youtube') {
        return iframe('http://www.youtube.com/embed/' . $d . '?border=0&version=3&autohide=1&showinfo=0&rel=0&fs=1', $w, $h);
    } elseif ($p == 'daily') {
        return iframe('http://www.dailymotion.com/embed/video/' . $d, $w, $h);
    } elseif ($p == 'vimeo') {
        return iframe('http://player.vimeo.com/video/' . $d, $w, $h);
    } elseif ($p == 'vk') {
        return iframe('http://vk.com/video_ext.php?oid=' . $d . '&hd=2', $w, $h);
    } elseif ($p == 'ted') {
        if (strpos($d, '&')) {
            list($d, $ti) = explode('&', $d);
        }
        return '<embed src="http://video.ted.com/assets/player/swf/EmbedPlayer.swf"  width="100%" height="100%" allowFullScreen="true" flashvars="vu=' . $d . '&vw=100%&vh=100%&ap=0&lang=' . $_SESSION['opts']['lang'] . '&ti=' . $ti . '"></embed>';
    } elseif ($p == 'livestream') {
        return iframe('http://cdn.livestream.com/embed/' . $d . '?layout=4&height=' . $h . '&width=' . $w . '&autoplay=false', $w, $h);
    } elseif ($p == 'rutube') {
        return '<embed src="http://video.rutube.ru/' . $d . '" type="application/x-shockwave-flash" wmode="window" width="100%" height="auto" allowFullScreen="true">';
    } else {
        return video_html($d);
    }
}
Example #2
0
File: ajax.php Project: philum/cms
     p($r);
     if ($r) {
         $ret = make_divtable($r, 1);
     }
     $t = $id;
     $s = 440;
     break;
 case "popread":
     req('pop,spe,tri');
     $t = 'article';
     $ret = read_msg($id, 3);
     break;
 case "popvideo":
     req('pop,spe,tri');
     $t = 'video';
     $ret = video_html($id);
     break;
 case "poppdf":
     $ret = pdfreader_j($id, $va);
     $t = $va ? $va : 'pdf';
     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":