| Server IP : 208.122.213.31 / Your IP : 216.73.216.185 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/ |
Upload File : |
<?php /*
PLEASE BACK UP FILE BEFORE EDITING!!!
TEXT EDITING NOTE:
All text can be edited inside the admin panel to preserve multi-language site functionality. All tags prefixed with "$templatefields" can be edited inside the CMS admin panel.
*/ ?>
<?php /* Only show the grid if it's a movie type */ ?>
<?php
$usetype = ($settype) ? $settype : key($media);
$showbar = 0;
$showbar_download = 0;
$showbar_play = 0;
$showbar_zip = 0;
$showbar_watermark = 0;
$picarr = [];
if (isset($movietabs[$usetype]) && isset($media[$usetype]))
{
foreach
($mediatypes as $mediatype)
{
if ($mediatype["Type"] == $settype)
{
foreach
($media[$usetype] as $tmp1)
{
if (isset($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]) && ($mediatype["ShowPlay"] >= 1) && ($mediatype["FullVideo"] >= 1))
{
$showbar_play = 1;
$showbar = 1;
}
}
}
}
foreach
($mediatypes as $mediatype)
{
if ($mediatype["Type"] == $settype)
{
foreach
($media[$usetype] as $tmp1)
{
if (isset($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]) && ($mediatype["ShowDownload"] >= 1) && ($mediatype["FullVideo"] >= 1))
{
$showbar_download = 1;
$showbar = 1;
}
}
}
}
if (!isset($movietabs[$settype])) return;
$flashtypes = explode(",", ".flv,.f4v,.mp4,.mpeg4,.m4v,.m3u8,.webm");
$fpth = $GLOBALS["contentdir"] . "/upload/";
$picarr = array();
foreach ($mediatypes as $mediatype)
{
if ($mediatype["FullVideo"] == 2 && ($mediatype["ShowPlay"] != 2 || in_array($set["Id"], $trial["allowrecent"])))
{
foreach
($media[$settype] as $tmp1)
{
$arx = $mediatype["Name"] . ":" . $mediatype["Type"];
if (isset($tmp1[$arx]) && $tmp1[$arx]["show"])
{
foreach
($media[$settype] as $videogroup)
{
if ( isset($videogroup[$mediatype["Name"] . ":" . $mediatype["Type"]]) )
{
$nde = $videogroup[$mediatype["Name"] . ":" . $mediatype["Type"]];
$add = array(
"id" => $nde["id"],
"path" => cdn_hook($fpth . $nde["fullpath"]),
"movie_width" => ($nde["movie_width"] ? $nde["movie_width"] : 320),
"movie_height" => ($nde["movie_height"] ? $nde["movie_height"] : 240),
"name" => $mediatype["Name"],
"type" => $settype,
"setid" => $set["Id"],
"label" => $mediatype["Label"],
);
if (isset($videogroup["thumb:" . $settype . ":Video Thumbnails"]))
{
$add["thumbnail"] = cdn_hook($fpth . $videogroup["thumb:" . $settype . ":Video Thumbnails"]["fullpath"]);
}
else
{
$add["thumbnail"] = "";
}
if (isset($nde["vtt_file"]))
{
$add["vtt_file"] = cdn_hook($fpth . $nde["vtt_file"]);
}
else
{
$add["vtt_file"] = "";
}
$picarr[] = $add;
}
}
}
}
}
}
if (sizeof($picarr))
{
$showbar_play = 1;
$showbar = 1;
}
}
?>
<script src="js/mp/mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="js/mp/mediaelementplayer.min.css" />
<script src="js/mp/mep-feature-time-rail-thumbnails.js"></script>
<script src="js/mp/vtt.js"></script>
<?php if (isset($movietabs[$usetype]) && isset($media[$usetype]))
{ ?>
<div id="download_form" style="display:none" title="Download This File">
<span class="download_instructions">
<?php echo $templatefields["txtdownloadinstructions"] ?>
<p>
<a id="download_url" href="#"><?php echo $templatefields["txtdownloadmovie"] ?></a>
</p>
</span>
</div>
<script>
extl = [];
extl["m4v"] = "video/mp4";
extl["m3u8"] = "application/x-mpegURL";
atst = [];
<?php foreach
($flashtypes as $flashtype)
{ ?>
atst[atst.length] = "<?php echo $flashtype ?>";
<?php } ?>
df_movie = new Array();
<?php
$std_vtt = "";
foreach
($picarr as $parr)
{
if (isset($parr["vtt_file"])) $std_vtt = $parr["vtt_file"];
if ($std_vtt) break;
}
foreach
($picarr as $parr)
{
echo "df_movie[df_movie.length] = {";
$parr["vtt_file"] = (!empty($parr["vtt_file"])) ? $parr["vtt_file"] : $std_vtt;
$cnt = 0;
foreach
($parr as $k => $pa)
{
$oarr[] = '"' . str_replace('"', '\"', $pa) . '"';
$cnt++;
echo "$k:" . '"' . str_replace('"', '\"', $pa) . '"';
if ($cnt != sizeof($parr)) echo ",";
}
echo "};\n";
}
?>
var movie = [];
<?php foreach
($mediatypes as $mediatype)
{
if ($mediatype["Type"] == $usetype)
{
?>movie["<?php echo $mediatype["Name"] ?>"] = {}; <?php echo "\n";
foreach
($media[$usetype] as $k => $tmp1)
{
if (isset($tmp1[$mediatype["Name"] . ":" . $settype]))
{
$parr = $tmp1[$mediatype["Name"] . ":" . $settype];
?>movie["<?php echo $mediatype["Name"] ?>"]["<?php echo $k ?>"] = {<?php
if ($mediatype["ShowPlay"] != 2 || $mediatype["ShowDownload"] != 2)
{ ?> path:"<?= cdn_hook($GLOBALS["contentdir"] . "/upload/" . $tmp1[$mediatype["Name"] . ":" . $settype]["fullpath"]) ?>", <?php
} ?> showplay:'<?php echo
$mediatype["ShowPlay"] ?>', showdownload:'<?php echo
$mediatype["ShowDownload"] ?>',movie_width:'<?php echo
$tmp1[$mediatype["Name"] . ":" . $settype]["movie_width"] ?>',movie_height:'<?php echo
$tmp1[$mediatype["Name"] . ":" . $settype]["movie_height"] ?>',name:'<?php echo
$mediatype["Name"] ?>',type: '<?php echo
$mediatype["Type"] ?>',vtt_file: '<?php echo
(!empty($parr["vtt_file"])) ? cdn_hook($GLOBALS["contentdir"] . "upload/" . $parr["vtt_file"]) : ""
?>'};<?php echo "\n";
}
}
}
}
?>
var pxx = null;
function loadmovie(t, n)
{
nn = movie[t];
if (n != "")
{
nn = nn[n];
}
else
{
load_default_movie();
return;
}
nx = movie[t];
cnt = 0;
tot = 0;
prev = "";
next = 0;
var prevprop = "";
var nextprop = "";
for (var prop in nx) {
// important check that this is objects own property
// not from prototype prop inherited
if(nx.hasOwnProperty(prop)){
tot++;
if (next == 1)
{
next = 0;
nextprop = prop;
}
if (prop == n)
{
cnt = tot;
next = 1;
if (prev != "")
{
prevprop = prev;
}
}
prev = prop;
}
}
if (tot > 1 && cnt != tot)
{
next = cnt + 1;
}
if (tot <= 1)
{
$(".video_clip_navigation_wrapper").slideUp();
}
else
{
$("#video_clipnum").html(cnt);
$("#video_numclips").html(tot);
$(".video_clip_navigation_wrapper").slideDown();
if (prevprop == "")
{
$("#prev_video").hide();
}
else
{
$("#prev_video").show();
$("#prev_video a").attr("href", "javascript:loadmovie('" + t + "', '" + prevprop + "')");
}
if (nextprop == "")
{
$("#next_video").hide();
}
else
{
$("#next_video").show();
$("#next_video a").attr("href", "javascript:loadmovie('" + t + "', '" + nextprop + "')");
}
}
var pxr = [];
pxr[0] = nn;
fnme = nn["path"]
umovie = 0;
for(cnty = 0; cnty < atst.length; cnty++)
{
if (fnme.toLowerCase().indexOf(atst[cnty]) != -1 || fnme.toLowerCase().indexOf(atst[cnty]) != -1)
{
umovie = 1;
}
}
if (umovie == 0 && (fnme.toLowerCase().indexOf(".wmv") != -1 ))
{
umovie = 1;
}
if (umovie == 1)
{
pxx = pxr;
func_playerload(pxr);
$('html, body').animate({
scrollTop: $('.title_bar').offset().top
});
}
else
{
alert("This movie format can't be loaded for watching in the browser. Please download this movie.");
}
return;
}
function load_default_movie()
{
var pxr = [];
if (df_movie.length == 0)
{
return;
}
for (var cntx=0; cntx < df_movie.length; cntx++)
{
fnme = df_movie[cntx]["path"]
umovie = 0;
for(cnty = 0; cnty < atst.length; cnty++)
{
if (fnme.toLowerCase().indexOf(atst[cnty]) != -1 || fnme.toLowerCase().indexOf(atst[cnty]) != -1)
{
umovie = 1;
pxr.push(df_movie[cntx]);
}
else if (umovie == 0 && (fnme.toLowerCase().indexOf(".wmv") != -1 ))
{
umovie = 1;
pxr.push(df_movie[cntx]);
}
}
}
if (umovie == 1)
{
pxx = pxr;
func_playerload(pxr);
}
else
{
alert("Cannot load movie");
}
}
$().ready(function()
{
load_default_movie();
});
<?php
$useimage = "";
if (isset($set['info']['thumbs'][9]["filename"]))
{
$useimage = cdn_hook($GLOBALS["contentdir"] . "/contentthumbs/" . $set['info']['thumbs'][9]["filename"]);
}
if (isset($set['info']['thumbs'][9]["4x_filename"]))
{
$useimage = cdn_hook($GLOBALS["contentdir"] . "/contentthumbs/" . $set['info']['thumbs'][9]["4x_filename"]);
}
?>
useimage = "<?php echo $useimage ?>";
function download(f)
{
file = f[f.selectedIndex].value
if ($(f[f.selectedIndex]).data("trial") == 1)
{
document.location = file;
return;
}
if (file != "")
{
$("#download_url").attr("href", file)
$( "#download_form" ).dialog({
position: { my: "right top", at: "right bottom", of: $("#download_select") }
});
}
}
function videotoggle(f)
{
file = f[f.selectedIndex].value
if ($(f[f.selectedIndex]).data("trial") == 1)
{
document.location = file;
return;
}
if (file == "")
{
load_default_movie();
return;
}
sp = file.split(":");
loadmovie(sp[0], sp[1]);
}
var fp = 0;
function func_playerload(picarr)
{
var plg1_streamer = "<?php echo $templatefields["flashmoviestreamer"] ?>"
var plg1_type = "<?php echo $templatefields["flashmovietype"] ?>"
var plg2_streamer = "<?php echo $templatefields["flashmp4streamer"] ?>"
var plg2_type = "<?php echo $templatefields["flashmp4type"] ?>"
flashVersion = "";
try {
try {
// avoid fp6 minor version lookup issues
// see: http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/
var axo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash.6');
try { axo.AllowScriptAccess = 'always'; }
catch(e) { hasFlash = false; }
} catch(e) {}
flashVersion = new ActiveXObject('ShockwaveFlash.ShockwaveFlash').GetVariable('$version').replace(/\D+/g, ',').match(/^,?(.+),?$/)[1].split(',').shift();
// other browsers
} catch(e) {
try {
if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
flashVersion = (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g, ",").match(/^,?(.+),?$/)[1].split(',').shift();
}
} catch(e) {}
}
if (flashVersion == "") { hasFlash = false; }
else if (flashVersion < 10) { hasFlash = false; }
else { hasFlash = true; }
var testEl = document.createElement( "video" );
h264 = false;
m3u8 = false;
if (testEl.canPlayType)
{
h264 = "" !== ( testEl.canPlayType( 'video/mp4; codecs="avc1.42E01E"' ) || testEl.canPlayType( 'video/mp4; codecs="avc1.42E01E, mp4a.40.2"' ) );
m3u8 = "" !== ( testEl.canPlayType( 'application/vnd.apple.mpegURL;' ) );
var android = navigator.userAgent.toLowerCase().indexOf('android') > -1;
if (android) m3u8 = false;
}
errmsg = "<p class='getflash'>Your web browser does not support this video format. Please install Flash Player 10 or greater.</p>";
errmsg = errmsg + "<a target='_blank' href='http://get.adobe.com/flashplayer/'>Get Flash Player</a>"
// Get IE version, if possible.
var ie = (function(){
var undef,
v = 3,
div = document.createElement('div'),
all = div.getElementsByTagName('i');
while (
div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
all[0]
);
return v > 4 ? v : undef;
}());
// IE9 has issues with HLS, so force flash player to be present.
if (!hasFlash && (!h264 || (ie < 10)))
{
$("#mediabox").html(errmsg)
$("#mediabox").css ('padding-top', '180px');
$("#mediabox").css ('height', '360px');
$("#mediabox").css ('background-color', 'black');
$("#mediabox").css ('color', 'white');
$("#mediabox a").css ('color', 'white');
return;
}
// If FLV streamer is of type http and doesn't include a full http URL, add one
if (plg1_type == "http")
{
if (!plg1_streamer.match(/^http/))
{
areaurl = "<?php echo $areaurl ?>"
if (areaurl.match(/^http/))
{
plg1_streamer = areaurl + "/" + plg1_streamer;
}
else if (areaurl != "")
{
plg1_streamer = "http://" + window.location.hostname + "/" + "<?php echo $areaurl ?>" + plg1_streamer;
}
}
}
var lst = [];
var uimage = "";
wdth = 50;
hdth = 50;
var started = 0;
passobj = {};
passobj.mode = 'auto';
passobj.enablePluginSmoothing = true;
if (ie == 9) passobj.mode = "auto_plugin";
if (navigator.platform.indexOf("Win") == -1 && navigator.userAgent.indexOf("Firefox/") != -1) passobj.mode = "auto_plugin";
$('video').each(function() {
player = $(this).data("mediaelementplayer");
player.setSrc("");
player.remove();
});
trackfile = "";
for (var cntx=0; cntx < picarr.length; cntx++)
{
pa = picarr[cntx]
if (parseInt(pa["movie_width"]) > 980)
{
wdth = 980;
hdth = Math.ceil(parseInt(pa["movie_height"]) * (wdth) / parseInt(pa["movie_width"]));
}
else if (parseInt(pa["movie_width"]) > wdth)
{
wdth = parseInt(pa["movie_width"]);
hdth = Math.ceil(parseInt(pa["movie_height"]) * (wdth) / parseInt(pa["movie_width"]));
}
// VTT thumbnails
if (pa.vtt_file && trackfile == "")
{
trackfile = pa.vtt_file;
}
flee = pa["path"] + "";
playerlist = {}
if (useimage != "")
{
uimage = useimage;
}
else
{
uimage = pa.thumbnail;
}
ext = flee.split('.').pop().split("?").shift();
if (extl[ext] != undefined)
{
playerlist.type = extl[ext]
}
else
{
playerlist.type = "video/" + ext;
}
if ((flee.split('.').pop() == "mp4" || flee.split('.').pop() == "m4v" || flee.split('.').pop() == "f4v"))
{
fl_streamer = plg2_streamer;
fl_type = plg2_type;
rtmp_prefix = "mp4"
}
else if (flee.split('.').pop() == "m3u8")
{
fl_streamer = plg1_streamer;
fl_type = plg1_type;
rtmp_prefix = ""
if (!m3u8 && hasFlash) passobj.mode = 'auto_plugin';
if (!m3u8 && !hasFlash) continue;
}
else if (flee.split('.').pop() == "flv")
{
fl_streamer = plg1_streamer;
fl_type = plg1_type;
rtmp_prefix = "flv"
}
else if (flee.split('.').pop() == "wmv")
{
fl_streamer = plg1_streamer;
fl_type = plg1_type;
rtmp_prefix = ""
}
else
{
fl_streamer = plg1_streamer;
fl_type = plg1_type;
rtmp_prefix = ""
}
if (fl_type == "lighttpd")
{
playerlist.src = flee;
passobj.enablePseudoStreaming = true;
}
else if (fl_type == "http" && (fl_streamer.indexOf("stream.php") != -1) && (rtmp_prefix == "flv"))
{
playerlist.src = fl_streamer + "?file=" + encodeURI(flee);
}
else if (fl_type == "http")
{
// console.log("Please contact CMS support to setup / configure pseudostreaming")
playerlist.src = flee;
}
else if (fl_type == "rtmp" && hasFlash)
{
playerlist.src = fl_streamer + "/" + rtmp_prefix + ":" + flee;
passobj.mode = "shim";
}
else if (fl_type == "wowza")
{
passobj.mode = "auto_plugin";
pcnt = 0;;
flx = flee.replace(/([^:])\/\//g, "$1/").split("/")
fl2 = flx.pop();
fl1 = flx.join("/");
fls = fl_streamer.replace("http://", "").replace("rtmp://", "");
if (hasFlash)
{
pcnt++;
playerlist.src = "rtmp://" + fls + "/" + rtmp_prefix + ":" + flee;
lst[lst.length] = playerlist;
}
if (m3u8)
{
pcnt++;
playerlist.src = "http://" + fls + "/_definst_/" + fl1 + "/" + rtmp_prefix + ":" + fl2 + "/playlist.m3u8";
lst[lst.length] = playerlist;
}
if (pcnt == 0)
{
playerlist.src = flee;
lst[lst.length] = playerlist;
}
continue;
}
else
{
playerlist.src = flee;
}
lst[lst.length] = playerlist;
}
try
{
mwm = Math.min($("#mediabox_parent").width(), wdth);
mhh = Math.round(mwm * hdth / wdth);
txt = '<div id="mediacontainer" style="min-height:' + mhh + 'px; max-width:' + wdth + 'px; max-height:' + hdth + 'px;">'
txt = txt + '<video width="100%" id="mediabox"'
if (uimage != "" && uimage != undefined && ("<?= $templatefields["flashvarsgalleryautoplay"] ?>" == "0"))
{
txt = txt + ' poster="' + escape(uimage) + '" ';
}
txt = txt + '>';
for(i = 0; i < lst.length; i++)
{
txt = txt + "\n" + '<source type="' + lst[i].type + '" src="' + lst[i].src + '" />';
}
if (trackfile != "")
{
txt = txt + "\n" + '<track kind="metadata" class="time-rail-thumbnails" src="' + trackfile + '"></track>';
}
txt = txt + '</video>';
txt = txt + '</div>';
$("#mediabox_parent").html(txt);
$( window ).resize(function() {
mwm = Math.min($("#mediabox_parent").width(), wdth);
mhh = Math.round(mwm * hdth / wdth);
$("#mediacontainer").css("min-height", mhh + "px");
});
passobj.success = function(media, node, player) {
if ("<?= $templatefields["flashvarsgalleryautoplay"] ?>" != "0")
{
media.play();
}
media.addEventListener('play', function(e){
if (started == 0)
{
for(i = 0; i < picarr.length; i++)
{
if (media.src.indexOf(escape(picarr[i].path)) > 0)
{
url = "stattrack.php?pagename=image&id=" + picarr[i].id + "&cg=" + picarr[i].setid + "&type=" + picarr[i].type + "&mt=" + picarr[i].name;
$.get(url);
}
}
started = 1;
}
});
media.addEventListener('ended', function(e){
started = 0;
});
<?php if (isset($trial)) { ?>
media.addEventListener('ended', function(e){
document.getElementById('mediabox_parent').style.display = 'none';
document.getElementById('hpromo').style.display = 'block';
if (document.getElementById("postroll_url"))
{
document.getElementById("postroll_url").href = "<?php echo $trial["videourl"] ?>";
}
});
<?php } ?>
};
passobj.features = ['playpause','progress','current','duration','tracks','volume', 'timerailthumbnails','fullscreen'];
$('#mediabox').mediaelementplayer(passobj);
}
catch(e)
{
alert(e)
}
}
$( document ).ready(function() {
$("#movieformat_select").val("");
$("#download_select").val("");
});
</script>
<?php } ?>
<?php include "gallery/vod_nav.tpl"; ?>
<br clear="all" />
<?php if ($showbar)
{ ?>
<!-- END PLAYER FUNCTIONS - START EDITABLE DESIGN CODE -->
<div class="format_select_menu" align="center">
<!-- Viewing/Streaming options -->
<?php if ($showbar_play)
{ ?>
<?php echo $templatefields["txtwatchmovie"]; ?>:
<select id="movieformat_select" onchange="videotoggle(this)">
<?php if (sizeof($picarr)) { ?>
<option value="" selected="selected" autocomplete="off"><?php echo $templatefields["txtchooseformat"]; ?></option>
<?php } ?>
<?php foreach ($mediatypes as $mediatype) { ?>
<?php if ($mediatype["Type"] == $settype) { ?>
<?php foreach ($media[$usetype] as $k => $tmp1) {
if (isset($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]) && ($mediatype["ShowDownload"] == 2 && !in_array($set["Id"], $trial["allowrecent"])) && ($mediatype["FullVideo"] >= 1)) { ?>
<option data-trial="1" value="<?= $trial["videourl"] ?>"><?php
$pipe = 0;
// if ($mediatype["Format"]) { if ($pipe) echo " - "; echo $mediatype["Format"]; $pipe = 1; }
// if ($mediatype["Bitrate"]) { if ($pipe) echo " - "; echo $mediatype["Bitrate"]; $pipe = 1; }
if ($mediatype["Label"]) { if ($pipe) echo " - "; echo $mediatype["Label"]; $pipe = 1; }
$fsze = (!empty($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"])) ? $tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"] : 0;
$fsze /= (1024 * 1024);
// if ($fsze > 1) echo " (" . sprintf("%0.1f", $fsze) . " MB) ";
?></option>
<?php } elseif (isset($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]) && ($mediatype["ShowPlay"] >= 1) && ($mediatype["FullVideo"] >= 1)) { ?>
<option value="<?php echo $mediatype["Name"] ?>:<?php echo $k ?>"><?php
$pipe = 0;
// if ($mediatype["Format"]) { if ($pipe) echo " - "; echo $mediatype["Format"]; $pipe = 1; }
// if ($mediatype["Bitrate"]) { if ($pipe) echo " - "; echo $mediatype["Bitrate"]; $pipe = 1; }
if ($mediatype["Label"]) { if ($pipe) echo " - "; echo $mediatype["Label"]; $pipe = 1; }
$fsze = (!empty($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"])) ? $tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"] : 0;
$fsze /= (1024 * 1024);
// if ($fsze > 1) echo " (" . sprintf("%0.1f", $fsze) . " MB) ";
?></option>
<?php }
}
}
} ?>
</select>
<?php } ?>
<!-- Download options -->
<?php if ($showbar_download) { ?>
<?php echo $templatefields["txtdownload"]; ?>:
<select id="download_select" onchange="download(this)">
<option value="" selected="selected"><?php echo $templatefields["txtchooseformat"]; ?></option>
<?php foreach ($mediatypes as $mediatype) { ?>
<?php if ($mediatype["Type"] == $settype) { ?>
<?php foreach ($media[$usetype] as $tmp1) {
if (isset($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]) && ($mediatype["ShowDownload"] == 2 && !in_array($set["Id"], $trial["allowrecent"])) && ($mediatype["FullVideo"] >= 1)) { ?>
<option data-trial="1" value="<?= $trial["videourl"] ?>">
<?php
$pipe = 0;
// if ($mediatype["Format"]) { if ($pipe) echo " - "; echo $mediatype["Format"]; $pipe = 1; }
// if ($mediatype["Bitrate"]) { if ($pipe) echo " - "; echo $mediatype["Bitrate"]; $pipe = 1; }
if ($mediatype["Label"]) { if ($pipe) echo " - "; echo $mediatype["Label"]; $pipe = 1; }
$fsze = (!empty($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"])) ? $tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"] : 0;
$fsze /= (1024 * 1024);
if ($fsze > 1) echo " (" . sprintf("%0.1f", $fsze) . " MB) ";
print_r($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"]);
?></option>
<?php } elseif (isset($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]) && ($mediatype["ShowDownload"] >= 1) && ($mediatype["FullVideo"] >= 1)) { ?>
<option value="<?= cdn_hook($GLOBALS["contentdir"] . "/upload/" . $tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["fullpath"]) ?>">
<?php
$pipe = 0;
// if ($mediatype["Format"]) { if ($pipe) echo " - "; echo $mediatype["Format"]; $pipe = 1; }
// if ($mediatype["Bitrate"]) { if ($pipe) echo " - "; echo $mediatype["Bitrate"]; $pipe = 1; }
if ($mediatype["Label"]) { if ($pipe) echo " - "; echo $mediatype["Label"]; $pipe = 1; }
$fsze = (!empty($tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"])) ? $tmp1[$mediatype["Name"] . ":" . $mediatype["Type"]]["filesize"] : 0;
$fsze /= (1024 * 1024);
if ($fsze > 1) echo " (" . sprintf("%0.1f", $fsze) . " MB) ";
?></option>
<?php }
}
}
} ?>
</select>
<?php } ?>
</div>
<?php } ?>
<!-- Video clips and clip options -->
<div class="video_clip_navigation_wrapper">
<span class="video_clip_section">
<?php echo $templatefields["txtvideoclip"]; ?> <span id="video_clipnum">X</span> of <span id="video_numclips">X</span>
</span>
<span class="video_clip_section" id="prev_video">
<a href=""><span class="video_clip_arrow">< <?php echo $templatefields["txtprevious"]; ?></span></a>
</span>
<span class="video_clip_section" id="next_video">
<a href=""><span class="video_clip_arrow"><?php echo $templatefields["txtnext"]; ?> ></span></a>
</span>
</div>
</div>
<!--Movie player code-->
<div class="movie_wrapper">
<div id="hpromo" style="display:none; width:960px; height:540px; " align="center"><?php echo $templatefields["trailerjoin"] ?></div>
<div id="mediabox_parent" align="center">
<div id="mediabox" align="center"></div>
</div>
<!-- Do not delete this -->
<div id="nomansland" style="width:0px; height:0px;position:absolute;"></div>
<br />
</div>
<?php if (!sizeof($picarr) && sizeof($trial)) { ?>
<script>
$("#hpromo").ready(function() {
$("#hpromo").show();
});
$(".replay").ready(function() {
$(".replay").hide();
});
$("#postroll_url").ready(function() {
$("#postroll_url").attr("href", "<?= $trial["videourl"] ?>");
});
</script>
<?php } ?>