=strtok($scan_host->hostnames->hostname["name"], ".")?>
xpath("ports/port[service/@name='$conf_service' or @portid='$conf_service']")[0];
$state = $scan_service->state["state"] == "open" ? "primary" : "red";
switch($scan_service->service['name']) {
case "microsoft-ds":
case "netbios-ssn":
$shares = $scan_host->xpath("hostscript/script[@id='smb-enum-shares']/table[not(contains(@key, '$'))]");
if (count($shares)) {
?>
=$scan_service->service['name']?>
=$scan_service->service['name']?>
=$scan_service->service['name']?>:=$scan_service['portid']?>
:=$scan_service['portid']?>
=$scan_service->service['name']?>:=$scan_service['portid']?>
=$scan_service->service['name']?>:=$scan_service['portid']?>
=$scan_service->service['name']?>
:=$scan_service['portid']?>