Banner rotator complete with stats (clicks, views, CTR). The major update between this and my other version is the delete process is now a GUI rather than a simple input form. Also, the configurations of the files have been redesigned for ease of use.
Installation
------------------------
Transer ALL files into the same folder. Chmod each *.pl file to 755 and chmode logfile.txt to 777.
Inside the the folder of all these files, make a new FOLDER and call it 'images' without the quotes. Chmod /images/ to 777.
Configurations
------------------------
ban-setup.pl:
# full file path to the banner directory
my $localfile = "";
example: my $localfile = "/home/username/public_html/scripts/banner/images";
# full url to upload directory (cannot end with slash /)
my $url = "";
example: my $url = "http://www.yourpage.com/scripts/banner/images";
ban-rem.pl
# partial file path of images directory (do not end with a backslash)
my $url = "";
example: my $url = "/scripts/banner/images";
# The name of this script
my $script = "ban-rem.pl";
random.pl
# full url of image directory
my $url = "http://sulfericacid.perlmonk.org/scripts/banner/images";
example: my $url = "http://www.yourpage.com/scripts/banner/images";
redirect.pl
no changes need
ban-rem.pl
no changes needed
Use
-----------------------
Use ban-setup.pl to setup a banner.
Use ban-remove.pl to remove the banner
Use ban-stats to display banner stats
Use random.pl to display the banner in your pages:
To install as an SSI on a page, use:
<!--#include virtual="random.pl" -->
File List:
ban-rem.pl
3Kb
ban-setup.pl
4Kb
ban-stats.pl
2Kb
logfile.txt
1b
random.pl
1Kb
readme.txt
2Kb
redirect.pl
1Kb
Similar code
Guestbook
(Popularity: ) : This is a fairly nice guestbook. It includes a descent interface and allows you to configure many of the options ... Append to text file from form
(Popularity: ) : This file will append to a text file from a web form. Might want to tweak this for security and ... Acronym Quiz
(Popularity: ) : This is a basic example of how to make an online quiz. It has a list of 20 computer related ... Anonymous Chatterbox
(Popularity: ) : It's an anonymous chat system where users from your site can pick and use a username of their choice without ...