|
Nothing special about this project. It was written in the 'come down' period
after Photo Album.
It uses the same 'directory protection' from Photo Album (to stop snoopers
setting a path of '../../cgi-bin' etc, and uses the same idea of including the real
code in the /aspcode/ftp directory, require only a small file to handle the
FTP directory. The one in 'pub' for instance is:
' Configuration Setup
g_bSupportDir=1 ' Allow sub-directories. If concerned about security, set to zero
g_szGfxPath="/aspcode/ftp/" ' Where the graphics (for file and folder icons) stored. MUST END WITH '/'
g_szRootPath="/pub/" ' The path must be relative to this directory. MUST END WITH '/'
g_szThis="default.asp" ' Name of this file (usually default.asp). It will be ignored from the dir list
Response.Write "<HTML><HEAD><TITLE>ASP-FTP Server. Copyright 2000</TITLE></HEAD><BODY>"
FTPMain
Response.Write "</BODY></HTML>"
This makes it very easy to embed the directory listing in an existing web page.
|