
20/04/2002, 11:47
|
| | Fecha de Ingreso: mayo-2001 Ubicación: Monterrey, N.L.; México
Mensajes: 558
Antigüedad: 23 años, 9 meses Puntos: 0 | |
Re: Detectar IP del DOMINIO y Directorio de la aplicac
Código:
<title>
Información de [ <%=Request.ServerVariables("SERVER_NAME")%>]
</title>
<%
If Request.ServerVariables("HTTPS") = "off" then ' off for example only
Dim MyFSO, MyFiles, MySelf, MySelfTemp
Dim MyPhysPath, MyRootPath, MyURLPath
MySelf = Request.ServerVariables("SCRIPT_NAME")
MyRootPath = Server.MapPath(MySelf)
MySelfTemp = Replace(MySelf, "/", "\")
MyRootPath = Replace(MyRootPath, MySelfTemp, "\")
Set MyFSO = CreateObject("Scripting.FileSystemObject")
MyPhysPath = Request("MyPhysPath")
If MyPhysPath = "" then
MyPhysPath = MyRootPath
Else
MyPhysPath = MyPhysPath &"\"
End if
Set MyFiles = MyFSO.GetFolder(MyPhysPath)
MyDirName = MyFiles.Name
MyURLPath = Replace(MyPhysPath, MyRootPath, "/")
MyURLPath = Replace(MyURLPath, "\", "/")
Response.Write "<style type=text/css>"& vbCrLf
Response.Write "td { font-size:11px; font-family: verdana, arial; font-weight: normal; color: #666666; background-color: #ffffff; }"& vbCrLf
Response.Write "a { font-size:11px; font-family: verdana, arial; font-weight: bold; color: #003366; }"& vbCrLf
Response.Write "</style>"
Response.Write "<table border=0 cellspacing=1 cellpadding=5 align=center bgcolor=#cccccc>"& vbCrLf
Response.Write "<tr><td colspan=3><b>Sitio:</b> "& Request.ServerVariables("SERVER_NAME") &"</td></tr>"& vbCrLf
Response.Write "<tr><td colspan=3><b>Directorio Virtual:</b> "& MyURLPath &"</td></tr>"& vbCrLf
Response.Write "<tr><td colspan=3><b>Directorio Fisico:</b> "& MyPhysPath &"</td></tr>"& vbCrLf
Owen Bonilla
Webmaster Weblaguna S. C.
[email protected]
[email protected] |