"news.php", "schedule" => "tour.php", "home" => "news.php", "contact" => "contact.php", "custom" => "contents.php" ); $status="status=1"; if($_POST['cm2_preview'])$status="status>0"; /*** Variables from apache redirects ***/ $urlkeyword=strtolower($_GET['CM2_ukey']); /* if(!$urlkeyword){ $query = "SELECT * FROM splashpg"; if($cm2_preview) $query .= " WHERE status>0 ORDER BY orderby ASC LIMIT 1"; else $query .= " WHERE status=1 ORDER BY orderby ASC LIMIT 1"; $result = @mysql_query($query); if(mysql_num_rows($result)&&!$_GET['CM2_Sitemap']){ $row = @mysql_fetch_array($result); $splashPage=$row['text_content']; } else { $splashPage=""; } } */ if(!$urlkeyword||$urlkeyword=="home"){ $urlkeyword = $defaultUkey; } $siteMapPages=array("site_menu.php"); if($_GET['CM2_Sitemap']==true){ $SEOContent= array(); $sitemap=true; foreach($siteMapPages as $sMap){ ob_start(); include $scriptsDir.$sMap; $htmlContents = ob_get_contents(); ob_end_clean(); $SEOC=array(); parse_str(strtolower($htmlContents),$SEOC); $SEOContent = array_merge(array_values($SEOContent),array_values($SEOC)); } if(count($SEOContent)>0){ echo ''."\r\n"; echo ''."\r\n"; } foreach(array_unique($SEOContent) as $item) if(!is_numeric($item)){ echo " \r\n"; echo " http://".$_SERVER["SERVER_NAME"]."/".strtolower(stripslashes($item))."\r\n"; echo " \r\n"; } if(count($SEOContent)>0){ echo ''; } exit(); } /*** CM2 Page Setup ***/ $query = "SELECT * FROM pagesetup"; $result = @mysql_query($query); $row = @mysql_fetch_array($result); echo mysql_error(); $title= htmlentities($row['title']); if(!$urlkeyword)$description= htmlentities($row['description']); $keywords= htmlentities($row['keywords']); $urchin= $row['urchin']; if(!$urlkeyword&&$defaultUkey)$urlkeyword=$defaultUkey; $siteVars="urlkeyword=".urlencode($urlkeyword); //$cm2_preview=1; $cm2_preview=$_POST['cm2_preview']; if($cm2_preview)$siteVars.="&cm2_preview=1"; $query = "SELECT * FROM site_setup_advanced"; $result = @mysql_query($query); $row = @mysql_fetch_array($result); $iphone= $row['iphone']; $seo= $row['seo']; $result = @mysql_query("SELECT * FROM cmsukeyseo WHERE ukey=".sqlFormat($urlkeyword)); $row = @mysql_fetch_array($result); if($row['seo_title'])$title=htmlentities($row['seo_title']); if($row['seo_desc'])$description=htmlentities($row['seo_desc']); ?> <? if($cm2_preview){ ?>**PREVIEW** <? } ?><?=$title?> '.$splashPage.''; exit(); } ?>
<?=$title?>
Menu
').'&'; $htmlContents = ob_get_contents(); ob_end_clean(); parse_str($htmlContents,$SEOContent); foreach($SEOContent as $item) if(!is_numeric($item))echo stripslashes($item.' '); ob_start(); echo 'footermenu1='.urlencode('').'&'; $htmlContents = ob_get_contents(); ob_end_clean(); parse_str($htmlContents,$FooterContent); $keys = explode('/',$urlkeyword); $urlkeyword=$keys[0]; if($keys[1])$subkey=$keys[1]; else $subkey=''; if($keys[2])$lNum=$keys[2]; //SPECIAL for photos ob_start(); if($urlkeyword){ if($defaultPages[$urlkeyword]) include $scriptsDir.$defaultPages[$urlkeyword]; else include $scriptsDir.$defaultPages['custom']; } else include $scriptsDir.$defaultPages['default']; $htmlContents = ob_get_contents(); ob_end_clean(); parse_str($htmlContents,$SEOContent); foreach($SEOContent as $item) if(!is_numeric($item))echo stripslashes($item.' '); ?>