%@Language=VBScript%>
<% Option Explicit%>
<%IF NOT Session("control") = "jswebkj" THEN
response.Redirect "http://www.jsweb.com/kj/loggain.htm?vad=login"
ELSE %>
<%
Dim objFSO, intNothing
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
Dim objFolder, objFolders, strDir, strNewDir
strDir = ""
IF Request.QueryString("dir") <> "" then
strNewDir = Request.QueryString("dir")
setPhotoDrive = setPhotoDrive & strNewDir
strDir = strDir & strNewDir
end if
Set objFolder = objFSO.GetFolder(setPhotoDrive)
Dim intPic
intPic = Request.QueryString("pic")
IF Request.QueryString("dir") <> "" then
strNewDir = Request.QueryString("dir")
end if
Dim strMenu, strBuildMenu, iSlinga, strDirBack, intFirst
strMenu = Split(strNewDir, "/")
IF LEN(strNewDir) then
intFirst = 1
For iSlinga = LBound(strMenu) to UBound(strMenu)
IF intFirst = 1 then
strDirBack = strMenu(iSlinga)
intFirst = 2
Else
strDirBack = strDirBack & "/" & strMenu(iSlinga)
End if
strBuildMenu = strBuildMenu & " " & strMenu(iSlinga) & " /"
Next
end if
Dim strPrev, strForw, intNr, intTotal
For Each objFolders in objFolder.Files
IF NOT (LEFT(objFolders.Name, 7) = "100x75-") AND NOT (LEFT(objFolders.Name, 6) = "1024x-") AND NOT (LEFT(objFolders.Name, 6) = "1280x-") AND NOT (LEFT(objFolders.Name, 6) = "1600x-") AND NOT (LEFT(objFolders.Name, 5) = "800x-") AND NOT Right(objFolders.Name, 3) = "txt" AND NOT left(objFolders.Name, 3) = "th_" then
intTotal = intTotal + 1
IF objFolders.Name = intPic then
intNr = intTotal
end if
IF intNR = "" then
strPrev = objFolders.Name
End if
IF intTotal = (intNr + 1) then
strForw = objFolders.Name
end if
end if
Next
IF intNr < 1 then
intNr = 1
end if
Dim intBildspel
intBildspel = Request.QueryString("bildspel")
IF intBildspel = "1" then
intBildspel = 1
elseif intBildspel = "3" then
intBildspel = 3
elseif intBildspel = "5" then
intBildspel = 5
elseif intBildspel = "10" then
intBildspel = 10
elseif intBildspel = "15" then
intBildspel = 15
elseif intBildspel = "30" then
intBildspel = 30
else
intBildspel = ""
end if
IF intTotal = 1 then
intBildspel = ""
end if
Dim intStorlek
intStorlek = ""
IF Request.QueryString("storlek") = "800" then
intStorlek = "800x-"
ElseIF Request.QueryString("storlek") = "1024" then
intStorlek = "1024x-"
ElseIF Request.QueryString("storlek") = "1280" then
intStorlek = "1280x-"
ElseIF Request.QueryString("storlek") = "1600" then
intStorlek = "1600x-"
End if
%>