The banner system Uses the Server Side Include call :

<!--#include virtual="/cgi-bin/banners/hbanner.cgi?user=master"-->

LDS Banner Exchange

README.TXT
The banner config file has two items that must be set:
1. $serverRoot This is the location of your account.dbf file the directory must be set to chmod a+rw (dirname).
2. $logRoot this is where the logs are stored for the status program the directory must be set to chmod a+rw (dirname).
Note: The above are based on file root all virtual domains are in /virtual/.
The name of the config file is assigned when the copy of hbanner.

#demo.banner.conf 
$serverRoot = "/virtual/user/public_html/banners/"; 
$logRoot = "/virtual/user/public_html/banners/logs/"; 
1;


The account .dbf file is a flat file database and is atored in tab deleminated format.
Record format as follows:
/banners/5.gif test http://www.dragonware.com/ Visit DragonWare.com


banner imageurl <tab>account name nospaces<tab>Link url including http:// ftp:// etc.<tab>Alternate text for image<tab><cr>


The banner image URL can be fully qualified and include any GET methods you wish to include:

http://ad.linkexchange.com/X025840/logoshowad?free test http://ad.linkexchange.com/X025840/gotoad.map Visit link exchange

The link URL can include any GET methods you wish to include:




hbanner.cgi


The purpose of hbanner is to display server side include linked banners. The program is written in Perl and runs quickly. (average execution on SUNOS 4.x and Apache 2.1 is 0.15 seconds)
PASSED VARIABLES:

user
Authorized user name.

EXAMPLE CALL:

INCLUDE GET CALL ONLY:
<html><head><title>Banner System</title></head>
<body bgcolor="#ffaaaa">
<!--#include virtual="/cgi-bin/hbanner.cgi?user=demo"-->
<center>
<H2>page content here</H2>
</center>
</body></html>

hbannerup.cgi


The purpose of hbannerup is to update server side include linked banner system. The program is written in Perl and runs quickly. (average execution on SUNOS 4.x and Apache 2.1 is 0.35 seconds)

PASSED VARIABLES:

user
Authorized user name.

EXAMPLE POST CALL:
<HTML>
<HEAD>
<TITLE>Banner Administration</TITLE>
</HEAD>
<BODY BGCOLOR="#c4d4ff">
<FORM ACTION="/cgi-bin/hbannerup.cgi" METHOD="POST">
<CENTER><H2>Banner Administration</H2>
<HR>
<TABLE WIDTH="177" HEIGHT="41" BORDER="5" CELLSPACING="0" CELLPADDING="0">
<TR><TD VALIGN="TOP" BGCOLOR="#ffffcc" NOWRAP>
<B>Click to start:</B>
<INPUT NAME="user" TYPE="hidden" VALUE="demo">
<INPUT VALUE="Start" TYPE="submit">
</TD></TR>
</TABLE></CENTER>
<HR></FORM>
</BODY>
</HTML>