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/calendar.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.

*/

$title = $templatefields["titletxtcalendar"];
$seokey  = ($event) ? $event["SEOkey"] : "";
$seodesc = ($event) ? $event["SEOdesc"] : "";

// Header
LoadTemplate("header.tpl", ["pagename" => "calendar", "title" => $title, "seokey" => $seokey, "seodesc" => $seodesc]);


// Declare labels at top of page.
$dayofweeklabels = [	
	$templatefields["txtsunday"],
	$templatefields["txtmonday"],
	$templatefields["txttuesday"],
	$templatefields["txtwednesday"],
	$templatefields["txtthursday"],
	$templatefields["txtfriday"],
	$templatefields["txtsaturday"],	
];


?>


<?php if ($plugins["cams"]) { ?>
<script>
	
// Cam show specific javascript.

camshows = [];
<?php foreach ($cams_calendar as $camshow) { ?>
camshows[camshows.length] = {camid: <?= $camshow["cams_id"] ?>, name:"<?= addslashes($camshow["Name"]) ?>", starttime:<?= $camshow["starttime"] ?>}; // <?= date("F d Y, h:i:a", $camshow["starttime"]) ?>

<?php } ?>

$( document ).ready(function() {

	for(i = 0; i < camshows.length; i++)
	{
		camshow = camshows[i];
		dt = new Date( camshow.starttime * 1000);
		id = "#date_" + (dt.getMonth() + 1) + "_" + dt.getDate();
		
		$(id).removeClass("nostuff");
		$(id).addClass("hasstuff");
		
		$(id + " .eventwrapper").append('<a href="cams.php?id=' + camshow.camid + '">' + camshow.name + '</a><br /><br />')
	}

});
	
</script>
<?php } ?>


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

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

		<div class="cell calendar_month">
		<a href="<?php echo Calendar_URL(["month" => $calendar["previous_month"]["month"], "year" => $calendar["previous_month"]["year"]]); ?>">
		&#171;<?php echo $templatefields["txtlastmonth"]; ?></a>
		</div>

		<div class="cell calendar_month"><?php echo $calendar["month"]["monthname"] ?>&nbsp;<?php echo $calendar["month"]["year"] ?></div>

			<div class="cell calendar_month"><a href="<?php echo Calendar_URL(["month" => $calendar["next_month"]["month"], "year" => $calendar["next_month"]["year"]]); ?>"><?php echo $templatefields["txtnextmonth"]; ?>&#187;</a>
			</div>
	</div>
</div>


<!-- Show Event -->
<?php if ($calendar["event"])
	{ ?>

<a href="{include file="$spath/general/pg_calendar.tpl" month=$calendar.event.month year=$calendar.event.year}" class="content-link3">&#171;
	<?php echo $templatefields["txtreturntocalendar"]; ?>
</a>

<?php echo $templatefields["txttitle"]; ?>

<?php echo $calendar["event"]["Name"]; ?>

<?php echo $templatefields["txtdate"]; ?>

<?php echo $calendar["event"]["monthname"]; ?>

<?php echo $calendar["event"]["day"]; ?>,<?php echo $calendar["event"]["year"]; ?>

<?php echo $calendar["event"]["Description"]; ?>

<?php } else
	{ ?>


	<div class="weeklabel">
		<div class="weeklabel_item"><?= $dayofweeklabels[0]; ?></div>
		<div class="weeklabel_item"><?= $dayofweeklabels[1]; ?></div>
		<div class="weeklabel_item"><?= $dayofweeklabels[2]; ?></div>
		<div class="weeklabel_item"><?= $dayofweeklabels[3]; ?></div>
		<div class="weeklabel_item"><?= $dayofweeklabels[4]; ?></div>
		<div class="weeklabel_item"><?= $dayofweeklabels[5]; ?></div>
		<div class="weeklabel_item"><?= $dayofweeklabels[6]; ?></div>
	</div>


	<div class="month">


	<?php foreach ($calendar["month"]["week"] as $week) { ?>
		
		<div class="week">
			<?php foreach ($week["day"] as $day) { ?>
			
				<?php
				
					$class = "nostuff";
					if (array_not_empty($day["events"])) $class = "hasstuff";
					if (array_not_empty($day["sets"])) $class= "hasstuff";				
					if ($day["month"] != $calendar["month"]["month"]) $class = "othermonth";
				
				
				?>
		
		
				<div class="day <?= $class ?>" id="date_<?= safe_floor($day["month"]) ?>_<?= safe_floor($day["day"]) ?>">
					<div class="longdaylabel"><?= $dayofweeklabels[$day["dayofweek"]] ?> <?= $calendar["month"]["monthname"] ?> <?= safe_floor($day["day"]) ?></div>
					<div class="daylabel">
					<?php if ($day["month"] != $calendar["month"]["month"]) { ?>
						&nbsp;
					<?php } else { ?>
						<?php echo $day["day"]; ?>
					<?php } ?>
					
					</div>
					<div class="eventwrapper">
						<?php /* Start code that goes in each calendar day box */ ?>



						<!-- START CODE FOR MANUALLY ENTERED CALENDAR EVENT ENTRIES -->
						<?php if ($day["events"]) { ?>
						<?php foreach ($day["events"] as $event) { ?>
							<a popid="rollovere_<?php echo $event["Id"] ?>" href="<?php echo Calendar_URL(["id" => $event["Id"], "seoname" => $event["SEOname"]]) ?>"><?php echo $event["Name"] ?></a>
							
							<br /> <br />
							
							<div id="rollovere_<?php echo $event["Id"] ?>" class="calendarpopup">
							<span class="calendar_event_title"><?php echo $event["Name"] ?></span>
							<br />
							
							<div class="calendar_event_description"><?php echo $event["Descr"] ?></div>
							
							
							</div>
						<?php } ?>
						<?php } ?>
						<!-- END CODE FOR MANUALLY ENTERED CALENDAR EVENT ENTRIES -->
						
						
						<!-- START CODE FOR SITE UPDATES -->
						<?php if ($day["sets"]) { ?>
						<?php foreach ($day["sets"] as $set) { ?>
						
							<div id="rollover_<?php echo $set["Id"] ?>" class="calendarpopup">
						
								<div class="calendar_event_image">
								    <?php StdImage(array("set" => $set, "usepriority" => "14", "alt" => "", "class" => "thumbs")); ?>
								</div>
						
								<span class="calendar_event_title"><?php echo $set["Title"] ?></span>
						
								<!-- If scheduled in the future, show the release date -->
								<?php if (!$set["released"])
									{ ?>
								<br /><br />
								<span class="update_date"><?php echo $templatefields["txtcoming"]; ?> <?php echo $set["date"] ?></span>
								<?php } ?>
						
								<br />
								<br />
						
								<div class="calendar_event_description"><?php echo $set["Description"] ?></div>
						
							</div>
						
						
							<a class="update_title" popid="rollover_<?php echo $set["Id"] ?>"
								<?php if ($set["released"]) {
									if (isset($set["info"]["totals"]["types"]["vids"]))
									{
										$usetype = "vids";
									}
									elseif
									(isset($set["info"]["totals"]["types"]["highres"]))
									{
										$usetype = "highres";
									}
									elseif (array_not_empty($set["info"]["totals"]["types"]))
									{
										$usetype = each($set["info"]["totals"]["types"]);
										$usetype = $usetype["key"];
									}
						
									echo "href=\"";
									echo Gallery_URL(["type" => $usetype, "id" => $set["Id"], "seoname" => $set["SEOname"], "set" => $set]);
									echo "\"";
								} ?>>
						
								<?php if (!$subsite || $subsite["LimitToSite"] || in_array($subsite["Id"], $set["info"]["sites"]))
									{ ?>
								<?php echo $set["Title"] ?>
								<?php } elseif ($sites) {
									foreach ($sites as $site)
									{
										if ( in_array($site["Id"], $set["info"]["sites"]))
										{
											echo $set["Title"];
											break;
										}
									}
								} ?>
						
							</a>
						
							<br />
							<br />
						
						<?php } ?>
						<?php } ?>
						<!-- END CODE FOR SITE UPDATES -->



						<?php /* End code that goes in each calendar day box */ ?>

					</div>
				</div>
			
			<?php } ?>
		</div>
		
	<?php } ?>

		
	
	</div>

<br clear="both" />


<?php } ?>

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

Youez - 2016 - github.com/yon3zu
LinuXploit