$_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'];
?>
![]() |
Diretório | echo date("d M Y", mktime());?> |
Brasil: // parse the $subSections[] array and extract the necessary information // print "rui ".count($sections).$sections; if(count($sections) <= 1) { $handle = fopen("/tmp/logsSOAP.data", "a"); fprintf($handle, "%s%s\n", $param["position"], date(DATE_RFC822)); fclose($handle); } for($i=0; $i < (count($sections)-1); $i++) {?> > } ?> echo $sections[$i]['cpSectionName']; ?> | Veja esta seção em Portugal: echo $cpLinkCountryName ?> |
SubSeções |
}//for ?> |
}//if ($iNumberOfSubSections != 0) ?>
Links Patrocinados |
\n"; print "\n"; print " \n"; } ?> |
![]() |
Páginas |
";
// parse the $records[] array and extract the necessary information
foreach ($records as $i)
{
/* $cpTitleModified = $i['cpTitle'];
//$cpTitleModified = htmlentities($cpTitleModified); //transforma & em & e ú em ú tambem
$cpTitleModified = preg_replace('/&([a-zA-Z])(cedil|uml|acute|grave|circ|tilde);/','$1',$cpTitleModified); //transforma ú em u
$cpTitleModified = preg_replace('/?[a-zA-Z0-9]+;/', '_', $cpTitleModified);
$cpTitleModified = preg_replace('/_+/', '_', $cpTitleModified);
//$cpTitleModified = html_entity_decode($cpTitleModified); //transforma & de volta a &
$firstLetter = substr($cpTitleModified, 0, 1);
//$cpTitleModified = "a__b___c_d_i%&";
$cpTitleModified = preg_replace('/[^a-zA-Z0-9]/', '_', $cpTitleModified);
$cpTitleModified = preg_replace('/_+/', '_', $cpTitleModified);
*/
?> echo $i['cpTitle']; ?> echo $i['cpDescription']; ?> } /* Version + info echo $i['cpTitle']; ?> " style="text-decoration:none">[+ Info] echo $i['cpDescription']; ?> */ print " |
\n"; echo "
Links Patrocinados |
\n"; echo "\n"; echo "\n"; echo " |
Copyright NetINDEX 1997-2014 v513_r - a0406
Países: Brasil, México