require("header.lib.php");
$tpl = new FastTemplate('.');
$tpl->define(array(template => '_index.html'));
$sliderObj = GetRecord("content_slider_tbl", "*", "id='50a99fa13e504'");
$sliderTitle = stripslashes($sliderObj->TITLE);
$sliderLink = stripslashes($sliderObj->URL);
$sliderImg = NULL;
if (!empty($sliderObj->IMAGE) && file_exists(BACKEND_FOLDER.CONTENT_FOLDER.$sliderObj->IMAGE)) {
$imgWidth = 767;
$imgHeight = 364;
$size = @getimagesize(BACKEND_FOLDER.CONTENT_FOLDER.$sliderObj->IMAGE);
$width = ($size[0] > $imgWidth) ? $imgWidth : $size[0];
$height = ($size[1] > $imgHeight) ? $imgHeight : $size[1];
$sliderImg .= "";
}
if (!empty($sliderLink)) $sliderImg = "".$sliderImg."";
else $sliderImg = "".$sliderImg."";
$tpl->assign(array(VAR_LANDING_IMAGE => $sliderImg));
$tpl->parse(TEMPLATE, "template");
$tpl->FastPrint(TEMPLATE);
?>