| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 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/cms.classicscash.com/public_html/cms_admin/phptemplate_bak/voderic/ |
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.
*/
// TODO: Test trial permissions
$pagename = "gallery";
$title = $set["Title"];
if ( isset( $set['info']['totals']['types']['highres']['count'] ) && $set['info']['totals']['types']['highres']['count'] > 0 )
$settype_custom = 'highres';
elseif ( isset( $set['info']['totals']['types']['vids']['count'] ) && $set['info']['totals']['types']['vids']['count'] > 0 )
$settype_custom = 'vids';
elseif ( isset( $set['info']['totals']['types']['caps']['count'] ) && $set['info']['totals']['types']['caps']['count'] > 0 )
$settype_custom = 'caps';
if ( empty($settype) && isset($settype_custom) && isset($media[$settype_custom]) )
{
$_GET['type'] = $settype;
$settype = $settype_custom;
// echo "settype updated: {$settype}";
}
/*else
echo "<pre>".print_r($settype,true)."</pre>";*/
$permission = 1;
if ($trial && $settype == "highres")
{
if ( !in_array("0", $trial["accesspages"]) && !in_array($onpage, $trial["accesspages"]) && !in_array($set["Id"], $trial["allowrecent"]))
{
$permission = 0;
}
}
$startpos = (($onpage-1)*$numperpage+1);
$endpos = (($onpage)*$numperpage+1);
// echo "<pre>".print_r(array($startpos,$endpos),true)."</pre>";
foreach
($mediatypes as $mediatype)
{
if ($mediatype["FullVideo"] == 2 && $settype == $mediatype["Type"])
{
if (!isset($fullplay))
{
$fullplay = $mediatype;
}
}
}
// $go = ('highres' != $settype_custom) ? 1 : 0;
$go = ( isset($movietabs[$settype])) ? 1 : 0;
$usetype = ($settype) ? $settype : key($media);
// Header
LoadTemplate("header.tpl", ["pagename" => "gallery", "title" => $title, "seokey" => $set["SEOkey"], "seodesc" => $set["SEOdesc"]]);
?>
<!-- Start Trial Area Code - Only used if user is a trial user -->
<?php if (!$permission) { ?>
<?php echo $templatefields["txtnopermission"]; ?>
<?php return; } ?>
<script>
function TrackDownload(id, cg, type, mt)
{
spuu = [id, '', '', '', type, mt, cg]
TrackContent(spuu);
return true;
}
<?php if ($trial) { ?>
var plr = null;
function replay(){
document.getElementById('hpromo').style.display = 'none';
document.getElementById('mediabox_parent').style.display = 'block';
func_playerload(pxx)
}
<?php } ?>
</script>
<!-- End Trial Code -->
<div class="pornvideos clear">
<h2><?php echo $set["Title"] ?></h2>
<?php LoadTemplate("gallery/content_tabs.tpl"); ?>
</div>
<!-- SHOW IF MOVIE -->
<div class="bodyArea">
<div class="bodyAreaWrapper clb clear">
<?php if ($go) { ?>
<!-- Load Movie Player -->
<?php LoadTemplate("gallery/movie_player.tpl"); ?>
<?php $c = -1;$count = 0;?>
<?php
foreach ($media[$settype] as $videogroup) {
foreach ($mediatypes as $cttype) {
if ($cttype["FullVideo"] != 0) continue;
if (isset($videogroup[$cttype["Name"] . ":" . $cttype["Type"]])) { ?>
<?php break 2;
}
}
}
$c = -1;
$count = 0;
?>
<?php /* ?>
<div class="video_clips_listing_block">
<?php
// echo "<pre>".print_r($set,true)."</pre>";
// echo "<pre>".print_r($mediatypes,true)."</pre>";
// echo "<pre>".print_r($media,true)."</pre>";
foreach ($media[$usetype] as $k => $clip) { ?>
<?php $hasformat = 0; ?>
<?php
// echo "<pre>
// k: {$k}\n
// ".print_r($clip,true)."\n\r";
?>
<?php foreach ($mediatypes as $cttype) {
// echo "<pre>".
// print_r($cttype,true).
// "\n\r</pre><hr>";
if (!$hasformat && $clip[$cttype["Name"] . ":" . $cttype["Type"]] && ($settype == $cttype["Type"]) && ($cttype["FullVideo"] == "0") && ($c != $k) )
{
$c = $k;
$hasformat = 1;
$count++;
}
}
if ($hasformat && ($count)>=$startpos && ($count)<$endpos) { ?>
<div class="video_clips_wrapper">
<?php $ccount = $count + 1; ?>
<?php LoadTemplate("globals/video_clip.tpl", ["clip" => $clip, "n" => $k, "pos" => ($count - 1)]); ?>
</div>
<?php } ?>
<?php } ?>
</div>
<?php */ ?>
<div class="gallery_info gallery_info--movies">
<div class="txt txtLabel txtLabelMd mb5">MODELS:</div>
<div class="modelListNames txtB ttu txtLg mb10 txt txtLabel txtLabelLg"><?php LoadTemplate("globals/model_list.tpl", ["set" => $set, "modellimit" => "12"]); ?></div>
<div class="galleryMeta mb1e txt">
<span class="update_date"><?php echo $set["date"] ?></span>
<span class="avg_rating"><span class="txt txtLabel"><?php echo $templatefields["txtaveragerating"]; ?>:</span> <span class="updateRating"><?php echo sprintf("%.1f", ($set["plg_ratings_rank"] / $set["plg_ratings_total"] * 5)) ?></span></span>
</div>
<!--Description-->
<div class="galleryDescription mb5 txt">Decription: <?php echo $set["Description"] ?></div>
<!-- List Of Keyword Tags -->
<div class="galleryTags cf">
<?php LoadTemplate("globals/tag_list.tpl"); ?>
</div>
<div class="vodNavGallery"><?php include "gallery/vod_nav.tpl"; ?></div>
</div>
<?php } else { ?>
<?php
$pss = [];
// START: In a VOD area, hide page navigation if the person has not purchased scenes.
/*if ($area["EnableOD"] == 1)
{
$watpres = 0;
$img_pres = 0;
$usetype = ($settype) ? $settype : key($media);
if ($usetype)
foreach($watermarks as $mediatypew)
{
if ($mediatypew["sourceType"] == $settype)
{
if (isset($set['info']['totals']['watermarks'][$mediatypew["Name"]]['count']))
{
if ($mediatypew["Wtype"] == "thumb") $watpres = 1;
foreach ($media[$usetype] as $k => $photogroup)
{
$ut = $mediatypew["Wtype"] . ":";
if ($photogroup["$ut$usetype:" . $mediatypew["Name"]])
{
if ($mediatypew["Wtype"] != "thumb")
{
$img_pres = 1;
break;
}
}
}
}
}
}
if (!$img_pres && $usetype && !$watpres)
{
$ut = "jpg";
foreach ($media[$usetype] as $k => $photogroup)
{
if ($photogroup["$ut:$usetype"])
{
$img_pres = 1;
break;
}
}
}
if (!$img_pres)
{
$pss["numberofpages"] = 1;
$pss["onpage"] = 1;
$onpage = 1;
$startpos = (($onpage-1)*$numperpage+1);
$endpos = (($onpage)*$numperpage+1);
}
}*/
// END: In a VOD area, hide page navigation if the person has not purchased scenes.
?>
<!-- SHOW IF PHOTO GALLERY -->
<div class="gallery_info gallery_info--photos">
<div class="txt txtLabel txtLabelLg mb5">MODELS: <strong class="txtB ttu"><?php LoadTemplate("globals/model_list.tpl", ["set" => $set, "modellimit" => "12"]); ?></strong></div>
<div class="galleryMeta mb1e txt">
<span class="update_date"><?php echo $set["date"] ?></span>
<span class="avg_rating"><span class="txt txtLabel"><?php echo $templatefields["txtaveragerating"]; ?>:</span> <span class="updateRating"><?php echo sprintf("%.1f", ($set["plg_ratings_rank"] / $set["plg_ratings_total"] * 5)) ?></span></span>
</div>
<!--Description-->
<div class="galleryDescription mb5 txt">Decription:<?php echo $set["Description"] ?></div>
<!-- List Of Keyword Tags -->
<div class="galleryTags txt cf"><?php LoadTemplate("globals/tag_list.tpl"); ?></div>
</div>
<div class="vodNavGallery vodNavGalleryPhotos"><?php include "gallery/vod_nav.tpl"; ?></div>
<?php if (!empty($media[$settype])) { ?>
<div class="block photo_gallery_block">
<?php $cnt = 0; /*echo "startpos: {$startpos} - endpos: {$endpos}\n\r<br>";*/ ?>
<?php foreach ($media[$settype] as $k => $photo) { ?>
<?php if (($cnt+1) >= $startpos && ($cnt+1) < $endpos) { ?>
<div class="blockItem photo_gallery_thumbnail_wrapper">
<?php $tmpk = $cnt + $column; ?>
<?php $slc = array_slice($media[$settype], $tmpk, 1); ?>
<?php $slc = $slc[key($slc)]; ?>
<?php if ($tmpk + 1 < $endpos && isset($slc)) { ?>
<?php LoadTemplate("globals/showthumb2.tpl", ["photo" => $slc, "n" => $k, "pos" => $tmpk, 'settype' => $settype] ); ?>
<?php } ?>
</div>
<?php }/* else { echo "cnt: {$cnt}\n\r<br>"; }*/ ?>
<?php $cnt++; ?>
<?php } ?>
</div>
<?php LoadTemplate("template_sections/pagenav.tpl", ["pagename" => "gallery"]); ?>
<?php } ?>
<?php } ?>
</div>
<div class="midwrap clear clb mt10">
</div>
<!-- /.midwrap -->
</div>
<!-- Footer -->
<?php include "footer.tpl"; ?>