baphometSloth
ISP
This code worked perfectly about two months ago. Now when I try to run it it just hangs like its in a loop. The only diffrence from then and now is applying service pack 4 and some hotfixes from ms. I didnt write this and the guy whom did nolonger works with us and I dont know enough of ASP to really debug this.
Thanks so much guys and gals for any help
system: windows2k pro
SERVER: IIS5
======================= code =====================
Thanks so much guys and gals for any help
system: windows2k pro
SERVER: IIS5
======================= code =====================
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="CP_ACP"%>
<%
' On Error Resume Next
Response.Buffer = True
' dimension our variables first
Dim files_collection, filecount, filecounttable
' get variables for the current page and submitted directory
strDIR = Server.MapPath(".")
set files_collection = folder.Files
filecount = files_collection.Count
' create file I/O objects
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(strDIR)
%>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<title>..//Gallery</title>
<head />
<style type="text/css">
p {font: 10px Verdana}
</style>
<body background="[URL unfurl="true"]http://myip/adult/images/gallerytemp_11.gif"[/URL] leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<div align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" background="[URL unfurl="true"]http://myip/adult/images/gallerytemp_01.gif">[/URL]
<img src="[URL unfurl="true"]http://myip/adult/images/gallerytemp_03.gif"[/URL] width="117" height="18" />
</td>
</tr>
</table>
<br />
<table border="1" cellpadding="15" cellspacing="15" bordercolor="#666666" background="[URL unfurl="true"]http://myip/adult/images/gallerytemp_11.gif">[/URL]
<%
For Each objFile In objFolder.Files
IF InStr(objFile.Name,"img_")=1 THEN
If filecounttable = 0 Then
Response.Write "<tr>"
filecounttable = 1
End If
If filecounttable < 4 Then
Response.Write "<td bgcolor=#FFFFFF><a href=" & objFile.Name & " target=_blank><img src=thumbs/th_" & objFile.Name & " width=100 height=100 border=1></td>" & vbCrLf
filecounttable = filecounttable +1
Else
Response.Write "<td bgcolor=#FFFFFF><a href=" & objFile.Name & " target=_blank><img src=thumbs/th_" & objFile.Name & " width=100 height=100 border=1></td></tr>" & vbCrLf
filecounttable = 0
End If
End If
Next
%>
</table><br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" background="[URL unfurl="true"]http://myip/adult/images/gallerytemp_01.gif">[/URL]
<img src="[URL unfurl="true"]http://my[/URL] ip/adult/images/gallerytemp_03.gif" width="117" height="18" />
</td>
</tr>
</table>
</div>
</body>
</html>