% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%% Purpose: This lists all custom sub-directories and images (in those directories) as links on an index page. ' %%% Author: Dan Overlander ' %%% Date: Dec 21, 2004 ' %%% Revisions: ' %%% Comments: ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%% Document Includes %> <% ' ASP settings %> <% ' ADO variables %> <% ' website-specific variables %> <% ' Site Customization for Dummies %> <% ' contains all-purpose website functions %> <% ' contains functions relating to this website specifically ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%% Document variables if len(strMirrorDir) > 0 then Server.ScriptTimeout = 300 dim blnFoundHTML dim blnFoundHTMLignore dim blnFoundHTMLexceptions dim intFoundFolderExceptions dim blnAllFilesExpired dim blnResetAllFilesExpired dim blnFoundORDERtxt dim blnListMEDIAtxt dim strFileContents dim strPath dim strSubPath dim objFSO dim objFolder dim objSubFolder dim objSubSubFolder dim objFile dim objSubSubFile dim booHR dim strName dim strSize dim intSize dim strDateModified dim strFileDateModified dim strExt dim strName2Remember dim strName2Display dim strExcludeBuffer dim strFileToCheck ' using this as a temporary holding variable dim strThat ' holding var dim intFolderIndex ' counting index of each folder name dim strDir dim strShowingDir dim blnLogoExists blnLogoExists = 0 if len(request("strDir"))>0 then strDir = request("strDir") else strDir = "./" do until left(strDir, 3) <> "../" strDir = right(strDir, len(strDir)-3) loop if len(strDir) = 0 then strDir = "./" strDir = replace(strDir, "//", "/") strShowingDir = strDir dim strWH ' just a holding variable for a link comment ' BEGIN these are all related to writing the pages to disk... dim strLM ' ListMockups holding variable dim strDHname ' holder variable for name of instance of popup ' dim strWriteDH ' holder variable for names of popups dim strWriteJS ' holder variable for javascript popups (the write-to-disk command pops up windows for each file, to write EACH page to disk. These windows close themselves. dim intJSeconds ' counting variable, so that all the javascript popups don't happen exactly at once. intJSeconds = 500 ' milliseconds dim intJDefaultSeconds intJDefaultSeconds = intJSeconds ' END these are all related to writing the pages to disk... dim strFormName dim intMacCharacters ' how many characters to scan for in a file name, to determine whether we should warn the power user if it's unsafe to save to Offline. intMacCharacters = 27 dim strBrokeMacLimit strBrokeMacLimit = "" dim strFoundSpacesInName strFoundSpacesInName = "" dim booInvisible booInvisible = 0 session("summary") = "" ' session variable used for holding write-to-text summary/report. Cleared every time you hit the default page. ' recordsets --------------------------------------- Set rstDefault = Server.CreateObject("ADODB.RecordSet") dim arrBadFiles(10000,3) ' stores the PATH+NAME of a bad file, destination path+name, and bad file name (only) dim intBadFile ' a count of how many bad files were found intBadFile = 0 dim intFileTooBig intFileTooBig = 300000000 ' number of bytes as upper limit to mirror, when Mirroring files is turned on. dim objSub3Folder dim objSub4Folder dim objSub5Folder dim strFileLog ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%% Document Routines ' create the output folder for saving to Offline, if need be: if booWriteHTM = 1 then on error resume next createFolder strPhysicalPath & strOfflineFolder createFolder strPhysicalPath & strOfflineFolder & "_setup\" createFolder strPhysicalPath & strOfflineFolder & "_inc\" createFolder strPhysicalPath & strOfflineFolder & "_inc\js\" createFolder strPhysicalPath & strOfflineFolder & "_inc\css\" createFolder strPhysicalPath & strOfflineFolder & "_inc\images\" createFolder strPhysicalPath & strOfflineFolder & "_inc\images\icons\" copyFile strPhysicalPath & "_setup\userdefined.css", strPhysicalPath & strOfflineFolder & "_setup\" copyFile strPhysicalPath & "_setup\logo.gif", strPhysicalPath & strOfflineFolder & "_setup\" copyFile strPhysicalPath & "_setup\title.gif", strPhysicalPath & strOfflineFolder & "_setup\" copyFile strPhysicalPath & "_inc\js\SWFObject.js", strPhysicalPath & strOfflineFolder & "_inc\js\" copyFile strPhysicalPath & "_inc\css\default.css", strPhysicalPath & strOfflineFolder & "_inc\css\" copyFile strPhysicalPath & "_inc\images\bullet.png", strPhysicalPath & strOfflineFolder & "_inc\images\" copyFile strPhysicalPath & "_inc\images\bullet_circle.png", strPhysicalPath & strOfflineFolder & "_inc\images\" copyFile strPhysicalPath & "_inc\images\bullet_heart.png", strPhysicalPath & strOfflineFolder & "_inc\images\" copyFile strPhysicalPath & "_inc\images\contact_information.png", strPhysicalPath & strOfflineFolder & "_inc\images\" copyFile strPhysicalPath & "_inc\images\swf.jpg", strPhysicalPath & strOfflineFolder & "_inc\images\" copyFile strPhysicalPath & "_inc\images\icons\folder.gif", strPhysicalPath & strOfflineFolder & "_inc\images\icons\" on error goto 0 end if ' BEGIN check if settings are filled in if len(strPageTitle) = 0 or request("reset") = "true" then if request("reset") = "true" then response.redirect "_inc/define_settings.asp?reset=true" else response.redirect "_inc/define_settings.asp" end if end if ' END check if settings are filled in if request("method") = "logout" then session("strSiteUsername") = "" session("strSitePassword") = "" response.redirect strScriptName end if ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% function flushScreen(showThis) dim strFS strFS = right(showThis, len(showThis) - instrrev(showThis, "\")) rw "
" response.flush end function ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% ' this function returns a string containing a TABLE which displays the contents of the directory supplied. ' SYNTAX: listMockups "./", "inc, jpg" ' note: the above syntax will exlude all ".inc" and '.jpg" files from display function listMockups(strDir, strExcludeFromList) on error resume next strThis = buildPathTo(strDir & "\exceptions.txt") strExcludeFromList = readText(strThis, "") & strExcludeFromList on error goto 0 strExcludeBuffer = strExcludeFromList strPath = replace(strPath, "//", "/") if len(request("strDir")) > 0 then strSubPath = request("strDir") & "/" else strSubPath = "" strPath = Server.MapPath(strDir) ' Must be hard coded Set objFSO = Server.CreateObject("Scripting.FileSystemObject") ' BEGIN MIRROR FOLDER ' if necessary, check our mirror directory for new files to move inside the devsite. if len(strMirrorDir) > 0 and len(request("strDir")) = 0 then if booWriteHTM = 0 then rw "" & vblf end if strMirrorDir = Server.MapPath(strMirrorDir) Set objFolder = objFSO.GetFolder(strMirrorDir) ' ROOT LEVEL FILES on error resume next createFolder strPhysicalPath & "!FTP\" on error goto 0 for each objFile in objFolder.files getFileInformation(objFile) if not FileExists(strPhysicalPath & "!FTP\" & objFile.name) then if instr(lcase(strBadExtensions), lcase(strExt)) = 0 or (isPowerUser() and request("allowCopy") = "true") then if (intSize <= intFileTooBig) then strThis = strMirrorDir & "\" & objFile.name strThat = strPhysicalPath & "!FTP\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "1: Copied " & strThis & " to " & strThat & vblf else logBadFile strMirrorDir & "\" & objFile.name, strPhysicalPath & "!FTP\", "" & objFile.name & "" end if else logBadFile strMirrorDir & "\" & objFile.name, strPhysicalPath & "!FTP\", objFile.name end if else strThis = getFileDate(strPhysicalPath & "!FTP\" & objFile.name) if DateDiff("S", cdate(strFileDateModified), strThis) < 0 or request("allowCopy") = "true" then strThis = strMirrorDir & "\" & objFile.name strThat = strPhysicalPath & "!FTP\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "2: Copied " & strThis & " to " & strThat & vblf elseif DateDiff("S", cdate(strFileDateModified), strThis) = 0 then ' files are the same; do nothing. else logBadFile strMirrorDir & "\" & objFile.name, strPhysicalPath & "!FTP\", objFile.name & "(Did not copy over newer file)" end if end if next ' SUBLEVEL 1 FILES for each objSubFolder in objFolder.SubFolders if DateDiff("D", cdate(objSubFolder.DateLastModified), Now) < intDaysIgnoreMirror+1 then on error resume next createFolder strPhysicalPath & objSubFolder.name & "\" on error goto 0 for each objFile in objSubFolder.files getFileInformation(objFile) if DateDiff("D", cdate(strFileDateModified), Now) < intDaysIgnoreMirror+1 then if not FileExists(strPhysicalPath & "\" & objSubFolder.name & "\" & objFile.name) then if instr(lcase(strBadExtensions), lcase(strExt)) = 0 or (isPowerUser() and request("allowCopy") = "true") then if (intSize <= intFileTooBig) then strThis = strMirrorDir & "\" & objSubFolder.name & "\" & objFile.name strThat = strPhysicalPath & objSubFolder.name & "\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "3: Copied " & strThis & " to " & strThat & vblf else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\", "" & objSubFolder.name & "\" & objFile.name & "" end if else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\", objSubFolder.name & "\" & objFile.name end if else strThis = getFileDate(strPhysicalPath & "\" & objSubFolder.name & "\" & objFile.name) if DateDiff("S", cdate(strFileDateModified), strThis) < 0 or request("allowCopy") = "true" then strThis = strMirrorDir & "\" & objSubFolder.name & "\" & objFile.name strThat = strPhysicalPath & objSubFolder.name & "\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "4: Copied " & strThis & " to " & strThat & vblf elseif DateDiff("S", cdate(strFileDateModified), strThis) = 0 then ' files are the same; do nothing. else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\", objSubFolder.name & "\" & objFile.name & "(Did not copy over newer file)" end if end if end if next ' SUBLEVEL 2 FILES for each objSubSubFolder in objSubFolder.SubFolders on error resume next createFolder strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" on error goto 0 for each objFile in objSubSubFolder.files getFileInformation(objFile) if DateDiff("D", cdate(strFileDateModified), Now) < intDaysIgnoreMirror+1 then if not FileExists(strPhysicalPath & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name) then if instr(lcase(strBadExtensions), lcase(strExt)) = 0 or (isPowerUser() and request("allowCopy") = "true") then if (intSize <= intFileTooBig) then strThis = strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name strThat = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "5: Copied " & strThis & " to " & strThat & vblf else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\", "" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name & "" end if else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\", objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name end if else strThis = getFileDate(strPhysicalPath & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name) if DateDiff("S", cdate(strFileDateModified), strThis) < 0 or request("allowCopy") = "true" then strThis = strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name strThat = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "6: Copied " & strThis & " to " & strThat & vblf elseif DateDiff("S", cdate(strFileDateModified), strThis) = 0 then ' files are the same; do nothing. else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\", objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name & "(Did not copy over newer file)" end if end if end if next ' SUBLEVEL 3 FILES for each objSub3Folder in objSubSubFolder.SubFolders on error resume next createFolder strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" on error goto 0 for each objFile in objSub3Folder.files getFileInformation(objFile) if DateDiff("D", cdate(strFileDateModified), Now) < intDaysIgnoreMirror+1 then if not FileExists(strPhysicalPath & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name) then if instr(lcase(strBadExtensions), lcase(strExt)) = 0 or (isPowerUser() and request("allowCopy") = "true") then if (intSize <= intFileTooBig) then strThis = strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name strThat = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "7: Copied " & strThis & " to " & strThat & vblf else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\", "" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name & "" end if else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\", objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name end if else strThis = getFileDate(strPhysicalPath & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name) if DateDiff("S", cdate(strFileDateModified), strThis) < 0 or request("allowCopy") = "true" then strThis = strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name strThat = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "8: Copied " & strThis & " to " & strThat & vblf elseif DateDiff("S", cdate(strFileDateModified), strThis) = 0 then ' files are the same; do nothing. else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\", objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name & "(Did not copy over newer file)" end if end if end if next ' SUBLEVEL 4 FILES for each objSub4Folder in objSub3Folder.SubFolders on error resume next createFolder strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" on error goto 0 for each objFile in objSub4Folder.files getFileInformation(objFile) if DateDiff("D", cdate(strFileDateModified), Now) < intDaysIgnoreMirror+1 then if not FileExists(strPhysicalPath & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name) then if instr(lcase(strBadExtensions), lcase(strExt)) = 0 or (isPowerUser() and request("allowCopy") = "true") then if (intSize <= intFileTooBig) then strThis = strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name strThat = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" flushScreen(strThis) copyFile strThis, strThat strFileLog = strFileLog & "9: Copied " & strThis & " to " & strThat & vblf else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\", "" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name & "" end if else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\", objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name end if else strThis = getFileDate(strPhysicalPath & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name) if DateDiff("S", cdate(strFileDateModified), strThis) < 0 or request("allowCopy") = "true" then strThis = strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name strThat = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" copyFile strThis = strThat strFileLog = strFileLog & "A: Copied " & strThis & " to " & strThat & vblf elseif DateDiff("S", cdate(strFileDateModified), strThis) = 0 then ' files are the same; do nothing. else logBadFile strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name, strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\", objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name & "(Did not copy over newer file)" end if end if end if next intI = 0 for each objSub5Folder in objSub4Folder.SubFolders intI = intI + 1 next if intI > 0 then logBadFile "", "", objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & " had subfolders that were not copied." next next next end if next Set objFolder = objFSO.GetFolder(strPhysicalPath) ' REMOVE TOP-LEVEL MISSING FOLDERS for each objSubFolder in objFolder.SubFolders if not(instr("!FTP/, _inc/, _setup/", objSubFolder.name) > 0) then if not FolderExists(strMirrorDir & "\" & objSubFolder.name) then strThis = strPhysicalPath & objSubFolder.name DeleteFolder(strThis) strFileLog = strFileLog & "1: Deleted " & strThis & vblf end if end if next ' SUBLEVEL 1 FILES for each objSubFolder in objFolder.SubFolders if not(instr("!FTP/, _inc/, _setup/", objSubFolder.name) > 0) then for each objFile in objSubFolder.files getFileInformation(objFile) if instr(lcase(strName), "!!top") = 0 and instr(lcase(strIgnoredExt), lcase(strExt)) = 0 and instr(lcase(strIgnoredFiles), lcase(strName)) = 0 and not FileExists(strMirrorDir & "\" & objSubFolder.name & "\" & objFile.name) then strThis = strPhysicalPath & objSubFolder.name & "\" & objFile.name DeleteFile strThis strFileLog = strFileLog & "2: Deleted " & strThis & vblf end if next ' SUBLEVEL 2 FILES for each objSubSubFolder in objSubFolder.SubFolders for each objFile in objSubSubFolder.files getFileInformation(objFile) if instr(lcase(strName), "!!top") = 0 and instr(lcase(strIgnoredExt), lcase(strExt)) = 0 and instr(lcase(strIgnoredFiles), lcase(strName)) = 0 and not FileExists(strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name) then strThis = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objFile.name DeleteFile strThis strFileLog = strFileLog & "3: Deleted " & strThis & vblf end if next ' SUBLEVEL 3 FILES for each objSub3Folder in objSubSubFolder.SubFolders for each objFile in objSub3Folder.files getFileInformation(objFile) if instr(lcase(strName), "!!top") = 0 and instr(lcase(strIgnoredExt), lcase(strExt)) = 0 and instr(lcase(strIgnoredFiles), lcase(strName)) = 0 and not FileExists(strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name) then strThis = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objFile.name DeleteFile strThis strFileLog = strFileLog & "4: Deleted " & strThis & vblf end if next ' SUBLEVEL 4 FILES for each objSub4Folder in objSub3Folder.SubFolders for each objFile in objSub4Folder.files getFileInformation(objFile) if instr(lcase(strName), "!!top") = 0 and instr(lcase(strIgnoredExt), lcase(strExt)) = 0 and instr(lcase(strIgnoredFiles), lcase(strName)) = 0 and not FileExists(strMirrorDir & "\" & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name) then strThis = strPhysicalPath & objSubFolder.name & "\" & objSubSubFolder.name & "\" & objSub3Folder.name & "\" & objSub4Folder.name & "\" & objFile.name DeleteFile strThis strFileLog = strFileLog & "5: Deleted " & strThis & vblf end if next next next next elseif instr("!FTP/", objSubFolder.name) > 0 then for each objFile in objSubFolder.files getFileInformation(objFile) if instr(lcase(strName), "!!top") = 0 and instr(lcase(strIgnoredExt), lcase(strExt)) = 0 and instr(lcase(strIgnoredFiles), lcase(strName)) = 0 and not FileExists(strMirrorDir & "\" & objFile.name) and not FileExists(strMirrorDir & "\!FTP\" & objFile.name) then strThis = strPhysicalPath & objSubFolder.name & "\" & objFile.name DeleteFile strThis strFileLog = strFileLog & "6: Deleted " & strThis & vblf end if next end if next if len(strFileLog) > 0 then writeText strPhysicalPath & strLogFile, readText(strPhysicalPath & strLogFile, "") & date & " " & time & vblf & strFileLog end if if booWriteHTM = 0 then rw "" & vblf end if end if ' END MIRROR FOLDER Set objFolder = objFSO.GetFolder(strPath) For Each objFile In objFolder.Files getFileInformation(objFile) next if FileExists(strPhysicalPath & "_setup/logo.gif") then blnLogoExists = 1 intFolderIndex = 0 for each objSubFolder in objFolder.SubFolders intFolderIndex = intFolderIndex + 1 strName = objSubFolder.Name strName2Remember = Server.URLEncode(strName) if instr(strName, " ") > 0 then strFoundSpacesInName = strFoundSpacesInName & strName & "/,| " if intNewDays <> 0 then strThis = checkForNewness(strFileDateModified, "margin-right:0px;") if len(strThis) > 0 then strLM = strLM & strThis else strLM = strLM & strBullet end if else strLM = strLM & strBullet end if strLM = strLM & " | " & replace(" " & strName2Display & " " & readFileDescription(strFolder, strName, strExt) & " ", "/./", "/") & " |
| " if intNewDays <> 0 then strThis = checkForNewness(strFileDateModified, "margin-right:0px;") if len(strThis) > 0 then strLM = strLM & strThis else strLM = strLM & strBullet end if else strLM = strLM & strBullet end if strLM = strLM & " | " & replace(" " & strName2Display & " " & readFileDescription(strFolder, strName, strExt) & " ", "/./", "/") & " |
| " & strBullet & " | " & replace(" " & strName2Display & " " & readFileDescription(strFolder, strName, strExt) & " ", "/./", "/") & " |
" & vblf & _
"
"
strBody = strBody & strPDescription & ""
if blnRestrictDescWidth = 1 then strBody = strBody & " "
end if
if request("report") <> "true" then
strBody = strBody & " "
if len(strLogoLink) > 0 then strBody = strBody & ""
strBody = strBody & " " & vblf
end if
strBody = strBody & listMockups(strDir, "_inc/, _setup/, .nfo, _offline/") & vblf & _
" " & placeGlobalFooter() & vblf
strBody = strBody & UserCommentLink() & vblf
strBody = strBody & " |