-- Telnet Interface for Webmasters Originally the Telnet Interface was all in one code, including the HTML. Well, that was a concern for most Webmasters because they don't have a clue how to code. So what I figured is 'Why not make the HTML outside the code, and just make the code work for itself.' It was not very hard to do, and it looks better to boot. Since it works by looking at external files, I made a file called WEB.H (in the /SRC directory); this defines the file and the code it works with. An example is below: #define PUBLIC_WEB "../web/public_html/" #define STAFF_WEB "../web/staff_html/" #define PUB_INDEX PUBLIC_WEB "index.ti" #define PUB_ERROR PUBLIC_WEB "error.ti" #define PUB_STAFFLIST_H PUBLIC_WEB "stafflist.tih" #define PUB_STAFFLIST_F PUBLIC_WEB "stafflist.tif" #define PUB_WHOLIST_H PUBLIC_WEB "wholist.tih" #define PUB_WHOLIST_F PUBLIC_WEB "wholist.tif" #define PUB_WWWLIST_H PUBLIC_WEB "wwwlist.tih" #define PUB_WWWLIST_F PUBLIC_WEB "wwwlist.tif" #define STA_ERROR STAFF_WEB "error.ti" The first set of '#define' states where the directories for the files are. PUBLIC_WEB are for all the public files, and STAFF_WEB are for just staff viewing. If you ever move the directory, remember to redirect these in WEB.H; or you will get an error like: ERROR: Missing or corrupted Telnet Interface file. The second and third set of '#define' are just the files that do the work. This is kind of complicated to explain, but I will try my best: A '*.ti' (Telnet Interface) file is a file that is a whole HTML file, just with a different suffix rather than '*.html'. Just like making a regular file for the WWW, no strings. A '*.tih' file is the 'header' or 'top' of a HTML file, there is no bottom closing tags '</HTML>' because after this file is displayed, code from Telnet Interface will be displayed. A '*.tif' is not a TIFF graphic file, but a 'footer' or 'bottom' of your HTML file. This will display after the code from the Telnet Interface. An example would be: stafflist.tih (The first part, Top of the HTML file) + Code (Generated Code from Telnet Interface) stafflist.tif (The last part, Bottom of the HTML file) ------------- /stafflist.html So /stafflist.html would be the output on the WWW Browser. The public raves and thinks it is an act of magic, and you know you did it yourself. -------------------------------------------------------------------------------- Any questions can be sent to Christopher Aaron Haslage: kilokahn@geocities.com June 3, 1999 --------------------------------------------------------------------------------