'.strip_tags($prnt['ti']).'' ; else $opol[]= $prnt['ti'] ; $prents[]=$prnt['id']; $prnt=$_CMSP[$prnt['pr']]; } $opo=array_slice($opo,0,-1); $opo=array_reverse($opo); $opol=array_slice($opol,0,-1); $opol=array_reverse($opol); } if ($_CMSP[$_GET['ct']]['eg']=='news' && isset($_GET['id'])){ $_TESTCMSO=@unserialize(@file_get_contents(__BOX__.'news/'.$_GET['ct'].'.cns')); $postfix = " - ".$_TESTCMSO[$_GET['id']]['ti']; } if($_CMSP[$_GET['ct']]['tii']) define ('MTITLE',$_CMSP[$_GET['ct']]['tii'].$postfix); define('_SURL',MAIN_URL.'?ct='.trim($_GET['ct'])); //---------------------------------------- ####################################### if($_GET['p']){ if(file_exists(__BLOKS__.$_GET['p'].".php")){ define('_SURL_','?p='.$_GET['p']); include(__BLOKS__.$_GET['p'].".php"); $lddone=true; } } if(!$lddone){ include(__INCLUDES."home.php"); }else{ if(file_exists(__BLOKS__.$_GET['p']."_blocks.php")){ include(__BLOKS__.$_GET['p']."_blocks.php"); } } ######################################## ######################################## ###############OUTPUT FORMATING FUNCTIONS define ('PRIMARY_LINK',$opo[0]); function _title(){ //render title if($_GET['fu']=='s'&& $_GET['srchbox']){ print _SEARCHRESULTS; }else{ global $opo; if($opo&&!defined('MTITLE')) print strip_tags(implode(' » ',$opo) ); elseif(defined('MTITLE')) print strip_tags(MTITLE); else print SITE_NAME; } } /////////////////////////////////////////////////// if(!function_exists('_menulnks')){ function _menulnks(){//render menu tree global $_CMST,$_CMSP,$prents,$_CMSD,$opo,$NAVIG_CLASS,$PARSEDLINKS; ########$$$$$$$$$$$$$$$$$$$$ print ' '; ////// function ddtree($itms){ global $prents,$_CMSP,$_CMST; print ''; } ////// foreach($_CMST[21553181] as $row){ $jnk++; $itm=$_CMSP[$row]; //if($itm['pg']==2)continue; // JA GRIB NERAADIIT 1. LIMENJA SLEEPTO SADALJU!!! if(isacesable($itm)){ if(!$itm['url']) $lnk='?ct='.$itm['id']; else $lnk=$itm['url']; //Pārbaudam vai aktīva sadaļa if(!empty($_GET['ct']) and $itm['id']==$_GET['ct']){ $linkstyle='active'; } else $linkstyle='unactive'; if(PRIMARY_LINK==$itm['ti'] and $itm['id']!=$_GET['ct']) $linkstyle='act_link'; print ''; if($_CMST[$row]){ print ''; } } } print '
'.$itm['ti'].'
    '; $jscrpt.="acMenu('li$row');"; foreach($_CMST[$row] as $chd){ if(isacesable($_CMSP[$chd])){ // if($_CMSP[$chd]['pg']==1) // if($_CMSP[$chd]['pg']!=2){ <- Japieliek, lai neraadiitu 2 liimenja sleepto sadalju //Pārbaudam vai 2 līmeņa sadaļa ir aktīva... if(!empty($_GET['ct']) and $chd==$_GET['ct']) $linkstyle='active'; else $linkstyle=''; if(!$_CMSP[$chd]['url']) print '
  • '.$_CMSP[$chd]['ti'].''; else print '
  • '.$_CMSP[$chd]['ti'].''; //VECAIS VARIANTS BEZ 2. LIIMENJA SADALJU IZCELSHANAS: /* if(!$_CMSP[$chd]['url']) print '
  • '.$_CMSP[$chd]['ti'].''; else print '
  • '.$_CMSP[$chd]['ti'].''; */ //elseif($_CMSP[$chd]['pg']!=2) // print '
  • '.(($_CMST[$chd])?'':'').''.$_CMSP[$chd]['ti'].''; if($_CMST[$chd]&&(in_array($chd,$prents))){ ddtree($chd); } // } <- Japieliek, lai neraadiitu 2 liimenja sleepto sadalju print '
  • '; } } print '
'; ?>