<% option explicit ' Aligalbum by Steven Alig ' ***************************** ' 02-32-08 ' Removed comments section due to excessive spam attack ' Version 2.0.1 ' 03-14-04 ' Added Email address to comments section %> <% myPic= request.querystring("picture") if len(myPic) < 2 then myPic = "0" & myPic End if myFolder= request.querystring("album") If myFolder <> "" then imagetextfilepath = "..\text\"&myFolder&".txt" commenttextfilepath = "..\text\"&myFolder&"_com\" i2=0 'This sets the counter for the comments text %> <%= varHost %> - Photos <% myFolderPath = Server.MapPath(myFolder) Set objFSO = CreateObject("Scripting.FileSystemObject") ' If (objFSO.FolderExists(myFolderPath)) and myFolder <> "text" and myFolder <> "images" Then Set objFolder = objFSO.GetFolder(myFolderPath) Else response.redirect "index.html" End If ' If Len(myPic & "") > 1 Then If (objFSO.FileExists(objFolder&"\pics\"&myPic&".jpg")) Then Else response.redirect "album.asp?album="& myFolder End If Else myPic = 0 End if Set objFolderContents = objFolder.Files ' open the image text file If objFSO.FileExists(objFolder&"\"&imagetextfilepath) = True Then set f = objFSO.GetFile(objFolder&"\"&imagetextfilepath) 'open the textstream set ts = f.OpenAsTextStream(ForReading, -2) varts = ts.ReadAll MyArray = split(varts,"##") CheckText = True Else CheckText = False End if varCounter = 0 i = 0 %>
photos
<%= varAlbumTitle %>  -  <%= varAlbumDate %>
<% If myPic > 0 Then %>
<%= myPic %> of <%= varCounter %>
<% Else %> <%= varAlbumDescription %> <% End If %>
<% If myPic > 0 Then ' open the comments text file If objFSO.FileExists(objFolder&"\"&commenttextfilepath&"\"&myPic&".txt") = True Then set c = objFSO.GetFile(objFolder&"\"&commenttextfilepath&"\"&myPic&".txt") 'open the textstream set cts = c.OpenAsTextStream(ForReading, -2) varcts = cts.ReadAll ComArray1 = split(varcts,"||") CheckComText = True Else CheckComText = False End if %> <%If CheckText = True Then myPicNum = int(myPic)-1 If myPicNum <= ubound(MyArray) then%> <% End if End if %> <% Response.write " " %>
<% Response.write MyArray(myPicNum) %>
<%If CheckComText = True Then If len(varcts) > 2 then %> <% End if %> <% End if %>
Viewer Comments
<% For i2 = LBound(ComArray1) To UBound(ComArray1)-1 varcts2 = ComArray1(i2) ComArray2 = split(varcts2,"^^") %>
<% Response.write ComArray2(0) %>
<% Response.write ComArray2(1) %>

<% Next %>
   
Comments have been disabled as of 02/29/2008 due to excessive spam. Look for a new photo album coming soon.
 
<% Else %> <% varCounter = 0 For each objFileItem in objFolderContents if i mod 4 = 0 then response.write "" varCounter = varCounter + 1 if len(varCounter) < 2 then varCounter = "0" & varCounter End if Response.write " " if i mod 4 = 3 then Response.write " " End if i=i+1 Next If i mod 4 = 1 then response.write "" If i mod 4 = 2 then response.write "" If i mod 4 = 3 then response.write "" %>

" %> <%If CheckText = True Then myPicNum = int(varCounter)-1 If myPicNum <= ubound(MyArray) then%> <% Response.write MyArray(myPicNum) %> <% End if End if %> <% Response.write "
   
  
 
<% END IF %>
<% Else Response.write "no variable passed" Response.redirect "index.html" End if %>