"); define ("TEXT_GOOG_2" , "/* MX_ES_LrecVideoBaixo, 336x280, criado 31/05/08 */ google_ad_slot = \"7357207472\"; google_ad_width = 336; google_ad_height = 280; //--> "); define ("TEXT_GOOG_3" , "/* MX_ES_LrecOnlyVideo_2, 336x280, criado 28/10/08 */ google_ad_slot = \"1061932162\"; google_ad_width = 336; google_ad_height = 280; //--> "); define ("TEXT_ADD_GIF" , "anadirPagina"); //anadirPagina.gif define ("TEXT_ADD_ALT" , "Añadir página en esta sección"); define ("URL_SUBMIT_ACTION" , "/anadir/anadir3.php"); define ("TEXT_COM3" , "Comentarios"); define ("TEXT_COM0" , "http://mx.nget.com/comentarios"); define ("TEXT_COM2" , "Comentario:"); define ("TEXT_HELP" , "Ayuda"); define ("TEXT_HELP0" , "ayuda"); define ("TEXT_MAP" , "Mapa del Directorio"); define ("TEXT_ANALITICS" , " "); } else if($_SERVER["SERVER_NAME"] == "br.nget.com") { $siteName = "NGET Brasil"; define ("TEXT_TIT_CR" , "BR - "); define ("TEXT_LANGUAGE" , "pt-BR"); define ("TEXT_URL_HOME" , "http://br.nget.com/"); $url = 'http://br.nget.com/cgi-bin/showDirectory2.cgi'; $urlCgiAction = "/cgi-bin/index.cgi"; //"http://br.nget.com/cgi-bin/index.cgi" define ("TEXT_COUNTRY" , "BRASIL:"); define ("TEXT_DIR" , "DIRECTÓRIO"); define ("TEXT_SEARCH" , "alt=\"Pesquisar\" src=\"http://br.nget.com/image/pesquis.gif\""); define ("TEXT_SEARCH2" , "\"Pesquisar\""); define ("TEXT_COUNTRY_OTHER" , "Veja esta seção em Portugal: "); define ("TEXT_GOOG_2" , "google_ad_width = 336; google_ad_height = 280; google_ad_format = \"336x280_as\"; google_ad_type = \"text_image\"; //2007-03-26: BR_P_LrecVideoBaixo google_ad_channel = \"4468855866\"; google_color_border = \"FFFFFF\"; google_color_bg = \"FFFFFF\"; google_color_link = \"0000FF\"; google_color_text = \"000000\" google_color_url = \"000000\"; //--> "); define ("TEXT_ADD_GIF" , "adicionarPagina"); define ("TEXT_ADD_ALT" , "Adicionar Página Nesta Seção"); define ("URL_SUBMIT_ACTION" , "/adicionar/adicionar3.php"); define ("TEXT_HELP" , "Ajuda"); define ("TEXT_HELP0" , "ajuda"); define ("TEXT_MAP" , "Mapa do Diretório"); define ("TEXT_COM3" , "Comentários"); define ("TEXT_COM0" , "comentarios"); define ("TEXT_COM2" , "Comentário:"); define ("TEXT_ANALITICS" , " "); define ("TEXT_PUB_1" , " "); define ("TEXT_PUB_2" , " "); } else { $siteName = "NGET Portugal"; define ("TEXT_TIT_CR" , "PT - "); define ("TEXT_LANGUAGE" , "pt-PT"); define ("TEXT_URL_HOME" , "http://www.nget.pt/"); $url = 'http://www.nget.pt/cgi-bin/showDirectory2.cgi'; $urlCgiAction = "/cgi-bin/index.cgi"; define ("TEXT_COUNTRY" , "PORTUGAL:"); define ("TEXT_PUB_1" , ""); //deixou de ser usado ?? define ("TEXT_PUB_2" , ""); //!!?? define ("TEXT_DIR" , "Directório"); define ("TEXT_SEARCH" , "alt=\"Pesquisar\" src=\"http://www.nget.pt/image/pesquis.gif\""); define ("TEXT_SEARCH2" , "\"Pesquisar\""); define ("TEXT_COUNTRY_OTHER" , ""); //Veja esta secção no Brasil: "); define ("TEXT_GOOG_2" , "/* PT_PT_LrecVideoBaixo, 336x280, criado 9/3/09 */ google_ad_slot = \"0847974132\"; google_ad_width = 336; google_ad_height = 280; //--> "); define ("TEXT_ADD_GIF" , "adicionarPagina"); define ("TEXT_ADD_ALT" , "Adicionar Página Nesta Secção"); define ("URL_SUBMIT_ACTION" , "/adicionar/adicionar3.php"); define ("TEXT_COM3" , "Comentários"); define ("TEXT_COM0" , "comentarios"); define ("TEXT_COM2" , "Comentário:"); define ("TEXT_HELP" , "Ajuda"); define ("TEXT_HELP0" , "ajuda"); define ("TEXT_MAP" , "Mapa do Directório"); define ("TEXT_ANALITICS" , " "); //Novo formato setembro de 2009 } //Location of the search cgi //$urlCgiAction = "/cgi-bin/index.cgi"; //"http://br.nget.com/cgi-bin/index.cgi" //Location of the submit form //Location of help //$urlHelp = "http://www.nget.com/ajuda.html"; //url base of this directory //$urlDirectory = "http://www.flashindex.pt/SOAP_09/showDirectory.php?position="; //$urlDirectory = "/links" ; $urlDirectory = "" ; //$recordsLocation = "/registos/"; //Location of the SOAP server //$url = 'http://www.nget.com/cgi-bin/showDirectory2.cgi'; // $url = 'http://niserver8.mediacapital.pt/cgi-bin/showDirectory2.cgi'; ?> $_GET['position']); //to know all parameters use: print_r($_SERVER); $teste = $_SERVER["SCRIPT_NAME"]; //also PHP_SELF $positionAux = "/index.html"; //echo "$teste"; //$teste="/links/ARTE_CULTURA/FILOSOFIA/index.html"; //if you do not use links if( $urlDirectory == "/links") $positionAux = substr($teste, 6); else $positionAux = $teste; $param = array('position' => $positionAux); /* Create a new client by providing the endpoint to the * constructor. */ $client = new soapclientRui($url); //$client->debub_flag = 1; /* Call the directoryPage() function, passing the parameter list. */ $response = $client->call('directoryPage', $param); /* handle any SOAP faults. */ if ($client->fault) { echo "FAULT:

Code: {$client->faultcode}
"; echo "String: {$client->faultstring}"; } else { } $iPosition= $response['iPosition']; $uRecordsInPage = $response['uRecordsInPage']; $records = $response['records']; $sections = $response['sections']; $iNumberOfSections = $response['iNumberOfSections']; $subSections = $response['subSections']; $iNumberOfSubSections = $response['iNumberOfSubSections']; $nextPages = $response['nextPages']; $iNumberOfRecords = $response['iNumberOfRecords']; $cpLinkCountryUrl = $response['cpLinkCountryUrl']; $cpLinkCountryName = $response['cpLinkCountryName']; ?> NGET - <? print TEXT_TIT_CR; if (count($sections) >=4) { if ($sections[count($sections)-1]['cpSectionName'] == "Acre" || $sections[count($sections)-1]['cpSectionName'] == "Pará") print $sections[count($sections)-2]['cpSectionName']." > "; } if (count($sections) >= 2) echo $sections[count($sections)-1]['cpSectionName']; ?>

NGET <? print TEXT_COUNTRY;?>
value= align="absmiddle" border=0>
>
";print TEXT_SUB; print"

"; // parse the subSections[] array and extract the necessary information for($i=0; $i < (count($subSections)); $i++) { if(($i!=0)&&($i%3)==0) { print"\n"; } ?>

\n"; print "\n"; print "\n"; print "