0,'[NOLIST]'=>0,'[REGISTER]'=>0,'[LIST_REGISTER]'=>0,'[ARTICLES]'=>0); foreach($arr as $k => $v) { $arr[$k]=substr_count($text,$k); } if($arr['[REGISTER]']!=0) { $text=str_replace('[REGISTER]',$args['REGISTER'],$text); } if($arr['[LIST_REGISTER]']==0 || ($arr['[LIST_REGISTER]']!=0 && $g_is_logged)) { if($arr['[NOLIST]']!=0) { $text=str_replace('[LIST]','',$text); $text=str_replace('[ARTICLES]','',$text); $text=str_replace('[NOLIST]','',$text); } else { if($arr['[LIST]']!=0) { $text=str_replace('[LIST]',$args['LIST'],$text); } else { $text.='
'.$args['LIST']; } if($arr['[ARTICLES]']!=0) { $text=str_replace('[ARTICLES]',$args['ARTICLES'],$text); } else { $text.='
'.$args['ARTICLES']; } } $text=str_replace('[LIST_REGISTER]','',$text); } else { $text=str_replace('[LIST]','',$text); $text=str_replace('[ARTICLES]','',$text); $text=str_replace('[NOLIST]','',$text); $text=str_replace('[LIST_REGISTER]','',$text); } $x=explode('[*@SPLIT@*]',$text); $text=''.$x[0].''; $text.='
'.$x[1]; return($text); } if(!requested('id')){$_REQUEST["id"]=1;} $PAGE_TITLE=''; $PAGE_CAPTION=$PAGE_TITLE; $tt=0; $t="select id from ".TP."pages"; $t1=sQLexec($t); if(SQLcount($t1)==1) { $tt=1; } $pag3["text"]=""; $descr=''; $display_type=0; if($_REQUEST["id"]!=0 && $tt==0) { $pp=cale_categorie($_REQUEST["id"],$tot='',$pagina_act='page',$tabel=TP."pages",$fields='id|title_'.$_SESSION["lang"].'|parent_id'); $NIV=parinte_categorie($_REQUEST["id"],TP."pages","id|parent_id",""); $PARENT=parinte_categorie($_REQUEST["id"],TP."pages","id|parent_id",""); $a="select * from ".TP."pages where id='".$_REQUEST["id"]."' and status='1'"; $a1=SQlexec($a); if(SQLcount($a1)!=0) { $pag3=SQLfetch($a1); if($pag3["user_rights"]==1) { $g_user->require_login(); } $PAGE_TITLE=stripslashes(read_html($pag3["title_".$_SESSION["lang"]])); $descr_page=stripslashes(read_html($pag3["text_".$_SESSION["lang"]])); $top_descr_page=stripslashes(read_html($pag3["short_text_".$_SESSION["lang"]])); $display_type=$pag3["display_type"]; $display_type=(empty($display_type) || is_null($display_type))?0:$display_type; $g_page_bottom=$pag3; $body_page_left=''; if($pag3["show_branch"]!=0) { $text=''; $xxx="select * from ".TP."pages where parent_id='".$pag3["show_branch"]."' and status='1' order by ord"; $xxx1=SQLexec($xxx); if(SQLcount($xxx1)!=0) { while($xxx2=SQLfetch($xxx1)) { $xxlink=page_url($xxx2["id"]); $name=stripslashes(read_html($xxx2["title_".$_SESSION["lang"]])); $cl=($xxx2["id"]==requested('id') || $xxx2["id"]==9 || $xxx2["id"]==15)?' class="menuleft_on"':' class="menuleft"'; $text.=''.$name.''; $xx="select * from ".TP."pages where parent_id='".$xxx2["id"]."' and status='1' order by ord"; $xx1=SQLexec($xx); if(SQLcount($xx1)!=0) { while($xx2=SQLfetch($xx1)) { $xxlink=page_url($xx2["id"]); $name=stripslashes(read_html($xx2["title_".$_SESSION["lang"]])); $cl=($xx2["id"]==requested('id'))?' class="menuleft_on"':' class="menuleft"'; $text.=''.$name.''; } } } } if($text!='') { $like_this_article=$text; } } } $PAGE_CAPTION=$pp; } $PAGE_CAT=$_REQUEST["id"]; //if(!session_is_registered(TP."rate_entity")) //{ // session_register(TP."rate_entity"); // session_register(TP."rate_id_entity"); //} $_SESSION[TP."rate_entity"]='pages'; $_SESSION[TP."rate_id_entity"]=$_REQUEST["id"]; $PAGE_RATE=1; include("_top.inc.php"); ?> $v) { $vv=str_replace(' ','_',$v); $descr_content=str_replace(''.$v.'
'; } echo $descr_content; } else { ?>

'.$g_write_body_under_element; } ?>

HR