Languages Perl & PHP & Python Perl CGI  

Banner Rotator v2

download download  
important code information
author:
SpyderCo
minimum requirements:
Banner Rotator v2 description

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.pl3Kb
ban-setup.pl4Kb
ban-stats.pl2Kb
logfile.txt1b
random.pl1Kb
readme.txt2Kb
redirect.pl1Kb

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 ...
User reviews

Write a review:
1 2 3 4 5 6 7 8 9 10
1=poor 10=excellent
Write review*
Your name*
Email*
  (Comments are moderated, and will not appear on this site until the editor has approved them)
 
Rate me
supported os
stats
downloads 82
version
size in Kb 6
popularity   1228/5827733
user rating 2/10
ad


New Code
Popular Code