| 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.
*/
$title = ($subsite) ? $subsite["Name"] : $templatefields["titletxtindex"];
// Header
LoadTemplate("header.tpl", ["pagename" => "offers", "title" => $title]);
?>
<script>
cookiename = "ex_offers_<?php echo $offers["offer"][0]["Id"] ?>";
cookieexp = <?php echo $offers["offer"][0]["CookieExpires"] ?>;
oid = <?php echo $offers["offer"][0]["Id"] ?>
function nothanks()
{
exos = getCookie("ex_offers_thissesion");
if (exos == undefined)
{
exos = 0;
}
exos = parseInt(exos);
exos++;
setCookie("ex_offers_thissesion", exos, 0);
setCookie(cookiename, 1, cookieexp);
document.location = "./";
return;
}
function trackclick()
{
var xmlhttp;
if (window.XMLHttpRequest)
{
// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
else
{
return true;
}
xmlhttp.open("GET","offers.php?track=" + oid,false);
resp = xmlhttp.send(null);
setCookie(cookiename, 1, cookieexp);
return true
}
function setCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays == 0) ? "" : ";expires="+exdate.toGMTString())+
";path=/";
}
function getCookie(c_name)
{
var i,x,y,ARRcookies=document.cookie.split(";");
for (i=0;i<ARRcookies.length;i++)
{
x=ARRcookies[i].substr(0,ARRcookies[i].indexOf("="));
y=ARRcookies[i].substr(ARRcookies[i].indexOf("=")+1);
x=x.replace(/^\s+|\s+$/g,"");
if (x==c_name)
{
return unescape(y);
}
}
}
</script>
<div class="index_offer">
<br />
<?php if ($offers["offer"][0]["OfferType"] == "0") { ?>
<?php $width = $offers["offer"][0]["Width"]; $height = $offers["offer"][0]["Height"];?>
<a target="_blank" href="<?php echo $offers["offer"][0]["URL"] ?>" onclick="return trackclick()"><img
<?php
if ($offers["offer"][0]["Width"]) echo 'width="' . $offers["offer"][0]["Width"] . '" ';
if ($offers["offer"][0]["Height"]) echo 'height="' . $offers["offer"][0]["Height"] . '" ';
?>
src="<?= cdn_hook($GLOBALS["contentdir"] . "/contentthumbs/" . $offers["offer"][0]["Id"] . "-offer.jpg") ?>" /></a>
<?php } else { ?>
<?php echo $offers["offer"][0]["Code"] ?>
<?php } ?>
<br />
<!-- No Thanks Link to bypass the full page ad -->
<a href="javascript:nothanks()"><?php echo $templatefields["txtnothanks"] ?></a>
</div>
<!--Footer-->
<?php include "footer.tpl"; ?>