#######################################################
#             Ranking System V2.5
#
# This program is distributed as freeware. We are not            	
# responsible for any damages that the program causes	
# to your system. It may be used and modified free of 
# charge, as long as the copyright notice
# in the program that give me credit remain intact.
# If you find any bugs in this program. It would be thankful
# if you can report it to us at cgifactory@cgi-factory.com.  
# However, that email address above is only for bugs reporting. 
# We will not  respond to the messages that are sent to that 
# address. If you have any trouble installing this program. 
# Please feel free to post a message on our CGI Support Forum.
# Selling this script is absolutely forbidden and illegal.
##################################################################
#
#               COPYRIGHT NOTICE:
#
#         Copyright 1999 CGI-Factory.com
#
#      Author:  Yutung Liu
#      web site: http://www.cgi-factory.com
#      E-Mail: cgifactory@cgi-factory.com
#      Releasing Date: August 10, 1999  
#
#   This program is protected by the U.S. and International Copyright Law
#
###################################################################


Installation for people who are using version 1.0 and 2.0:

Version 2.5 works 100% with the database from version 1.0 and 2.0. 
However, some variables in cfg.pl are different than the ones in the version 1.0 and 2.0. 
You may want to check each new variable in the new cfg.pl before uploading it. 

Also, all scripts are updated. So you will also need to upload all of the new scripts to overwrite the old ones. 
gateway.pl is new in V2.5. 

Scripts need to be uploaded for upgrading: cfg.pl, signup.pl update.pl, gateway.pl and ranking.pl.

If you want to use your existing database from V 1.0 or 2.0, "Do Not" upload count.txt. Or the new members' data 
files will start to overwrite the old ones.


 


Installation:

1) Open the configuration script(cfg.pl) with a text editor.

Edit the variables in the script(cfg.pl).

(If the path to perl on your server is different from 
#!/usr/local/bin/perl 
then you will need to change it on the first line in "each scripts
(ranking.pl, signup.pl, gateway.pl and update.pl)." 

*You will get a 500 error message if the perl path is wrong.

2) Open all of the text files(count.txt, time.txt, header.txt, footer.txt and banner.txt) with a text editor.
count.txt- Nothing need to be modified.
time.txt- Nothing need to be modified.
header.txt and footer.txt-Type in the html tags that will make your topsites list looks like the rest of your pages. 
banner.txt- Type in the html tags for displaying banners.

3) Upload all of the scripts(ranking.pl, signup.pl, gateway.pl and update.pl) and the text files(count.txt, time.txt, header.txt, footer.txt and banner.txt) to your cgi-bin then chmod all of of the  
scripts to "755" (you don't need to chmod cfg.pl. just upload it.) and text files to "777."

4) Create a "directory," that you've set the path in the configuration 
script(cfg.pl) perviously. Chmod the directory
to "777". This directory will be used for storing the member data files.

5) Execute the script "update.pl" with your browser. (For example, point your browser to http://www.yourname.com/cgi-bin/update.pl)
It will create the topsites listing page(topsites.html or any name that you set). 

6) Done.

If you are just creating a ranking list for the products of your company or anything like that, the suggested way is that you can 
hide signup.html at a place where other people can't find it. Then you can add new items into the ranking list by yourself.  


##########################################################################
!!Important!!
"All of the files" have to be uploaded in "ASCII" mode or you will always 
get a 500 server error while accessing this program.
##########################################################################

