-
';$sto='
'; $res=substr($data,strpos($data,$sta)+strlen($sta));$res=substr($res,0,strpos($res,$sto)); $ita=explode('|',$res); if(in_array($page_cat,$ita)) $rnd_key=array_search($page_cat,$ita); else $rnd_key=array_rand($ita); $sta='<'.$ita[$rnd_key].'>'; $res=substr($data,strpos($data,$sta)+strlen($sta));$res=substr($res,0,strpos($res,$sto)); if($root==1)$res=str_replace('../','',$res); $res=str_replace("\'","'",$res); echo $res; ?>