ob_start("ob_gzhandler"); session_start(); // MASTER VARIABLES $cmsroot = "/home/xsys/public_html/_cms"; $m_host = "dev.gogreenwithenvy.com.au"; $m_user = "envylawn"; $m_guestaccess = true; $m_splashpage = "home.html"; $PAGE_OUTPUT = true; //Output all pages from CMS? Set this to true when done editing directly in index.htm // MASTER INCLUDES include("$cmsroot/siteheader.php"); include("$cmsroot/sitedbfunctions.php"); // Handle competition save if($m_posted && !$m_loadpost && $p_formid=="competition") include("includes/competition_save.php"); if($_SESSION['competition_post']){ $_POST = $_SESSION['competition_post']; $m_loadpost = true; unset($_SESSION['competition_post']); } //Single page replace html $m_html = ConvertMsg($m_html,$msg,$msgtype); $m_html = str_replace("[tokenkey]",$m_token,$m_html); $m_html = str_replace("[ip]",$ip,$m_html); $m_pagename = ($m_pagename=="" ? "home" : $m_pagename); //Testimonial slider if($m_pagename=="home"){ $TESTIMONIALS = GetDataRow($m_table, "pagename='testimonials-slider'"); $TESTIMONIALS = $TESTIMONIALS['html']!="" ? $TESTIMONIALS['html'] : ""; $m_html = str_replace("[testimonials]",$TESTIMONIALS,$m_html); } //Testimonial slider if($m_pagename=="competition"){ $TERMS = GetDataRow($m_table, "pagename='comp_terms'"); $TERMS = $TERMS['html']!="" ? $TERMS['html'] : ""; $m_html = str_replace("[comp_terms]",$TERMS,$m_html); } ?>
|
if($PAGE_OUTPUT){
$m_html = ConvertMsg($m_html,$msg,$msgtype);
$m_html = str_replace("[tokenkey]",$m_token,$m_html);
$m_html = str_replace("[ip]",$ip,$m_html);
echo $m_html."\n";
}
?>
|
|
|