SetBaseParamName("lang","page","sub_page"); $url->SetModeRewrite(); //asta debifeaza cristi inainte de a pune pe server //-----------------------------------------------------------------------------------------------------------// // xml parser _________________________________________________________________________________________// require_once($site_path."/comp/xml_class/avantis_xmlparser.php"); $xml_file_name = $site_path."/xml/hostingfreak_".$lang.".xml"; $parser =& new LinearTreeXMLparser(); $parser->SetXML($xml_file_name); $arr_nivel1 = $parser->GetChildsInfoArray(0,"ALT;MARKED;MENU_IMG;MENU_ALT"); //id sunt din oficiu $num_nivel1 = count($arr_nivel1); $page_info = $parser->GetNodeInfoByALT($page,"TITLEBAR;CONTENT;TITLE"); //echo $page_info["ID"]; $nr_childs = $parser->GetChildsNo($page_info["ID"]); if($nr_childs != 0) { $arr_nivel2 = $parser->GetChildsInfoArray($page_info["ID"],"ALT;MARKED;MENU_TEXT"); //id sunt din oficiu $num_nivel2 = count($arr_nivel2); if(empty($sub_page)) $sub_page = $arr_nivel2[0]["ALT"]; $page_info = $parser->GetNodeInfoByALT($sub_page,"TITLEBAR;CONTENT;TITLE;PAGEAT"); } //----------------------------------------------------------------------------------------------------------// ?> Web Hosting, Hosting, Europe Hosting, Web site hosting, cheap web hosting I hostingfreak.net