F T P C G I PURPOSE AND COPYRIGHT FTPCGI is a Win16/Win32 CGI webmanager for the most useful file and folder (directory) related operations like - view directory contents (with sort options), - change directory, - make directory, - remove directory, - rename directory, - view file (by MIME content type), - edit file, - download file, - upload file(s), - rename file, - local copy file, - change file attributes, - erase file. FTPCGI is written by Aryeh Eiderman (C) Netstrap Ltd using Borland Delphi 4.0. Author's e-mail - . PROGRAM INTERFACE CGI FTPCGI is both STANDARD CGI and Windows CGI application. OUTPUT Some web servers (like Apache) requires special handling of CGI output headers (and sometimes special application name). To provide this way rename file FTPCGI.EXE to the name that begins from "NPH-", i.e. NPH-FTPC.EXE; in this case - all output will be with full HTTP/1.0 headers and the server that need this will know about this. EMAIL FTPCGI have built-in SMTP messenger using regular TCP/IP Winsock connection. SECURITY Each HTML page after login contains in body username and password that garbled with random data and expire period so the saved pages became inactive also without logout. PACKAGE FTPCGI is the single 47KB or 69KB executable file. INITIALIZATION FILE [General] SECTION ExpireMinutes = Number of minutes while the dynamic page password is useful. Default=30. Home = Homepage link URL to be placed on the top of each page (header). Must contain some protocol prefix like "http://" or "ftp://". Support = Support link URL to be placed on the top of each page (header). Must contain some protocol prefix like "http://" or "mailto:". SMTPServer = SMTP server name or IP. SMTPPort = SMTP server port number. Default=25. [User_*] SECTION Asterisk here to be replaced by username of the user. Name = Real or name of this user. Password = Password for this user. EMail = e-mail of this user (used for password reminding). Path* = Permitted path for usage. Here the asterisk to be replaced by non-leading-zero sequential whole number starting from 1. (I.e. "Path1=", "Path2=", "Path3=" etc.) USERNAME AND PASSWORD CONDITIONS o No spaces allowed in begin or end of Username and Password o No multiple spaces allowed in Username and Password o No square brackets ("[","]") allowed in Username o Username is not case sensitive o Password is case sensitive o Username and Password maximum length is 64 o More requirements according to initialization file rules... ------------------------------------------------------- BEGIN OF FTPCGI.INI (OR NPH-FTPC.INI) EXAMPLE ------------------------------------------------------- [General] ExpireMinutes=40 Home=http://www.siteofowner.com Support=mailto:admin@email.here SMTPServer=mail.smtpofowner.com SMTPPort=25 [User_John] Name=John Doe Password=1234aBcD EMail=john@johnsprovider.net Path1=c:\pub\john [User_FrankB] Name=Frank Borland Password=Delphi4 EMail=frank@borland.com Path1=c:\pub\frankb Path2=d:\www\root\cgi-bin Path3=d:\recycled ------------------------------------------------------- END OF FTPCGI.INI (OR NPH-FTPC.INI) EXAMPLE -------------------------------------------------------