gid < 5) { include($lm_absolute_path."includes/offline.php"); return; } /*intialization and compatibility layer before using mambo code */ include($includes_dir."mambo.php"); /*now use the mambo template to geerate fioal out put */ if ( $my->id ) { include($lm_absolute_path.'editor/editor.php'); } //iF Item id is not set then get the topmost Itemid if(!isset($option)) { //get home $row=$conn->GetRow("SELECT * FROM #__menu WHERE menutype='mainmenu' ORDER BY ordering ASC"); $arr=explode('?',$row['link'],2); if(count($arr)>0) { $url_vars=explode('&',$arr[1],10); foreach($url_vars as $url_var) { list($uvar,$uval) =explode('=',$url_var); eval("\$$uvar='$uval';"); } } $Itemid=$row['id']; } $show_pathway=false; $lm_template_dir=$lm_absolute_path."templates/".$limbocore->getTemplate()."/"; ob_start(); include($lm_template_dir."index.php"); $data=ob_get_contents(); ob_end_clean(); /* XHTML templates can control content */ ob_start(); include($includes_dir."content.php"); $content=ob_get_contents(); ob_end_clean(); fill_meta($data); /*path is created at te end */ if($show_pathway) { include($includes_dir."pathway.php"); $data=str_replace("LM_PATHWAY",showPathway(),$data); } $data=str_replace(array("LM_CONTENT_REP"),array($content),$data); if ($lm_gzip && eregi("gzip",getenv("HTTP_ACCEPT_ENCODING"))) { ob_start("ob_gzhandler"); } header("Content-type: text/html; "._ISO); if($lm_seo)echo $lm_seo_ap->seo_url($data); else echo $data; ?>