#!/usr/bin/perl5 ################################################################################### ## Rank 'Em v1.30 ## ################################################################################### ## Created On: July 11, 1998 ## ## Last Updated: September 21, 1998 ## ## cgiworks@hotmail.com ## ## http://www.cgi-works.net ## ## Copyright © 1998 CGI Works. All Rights Reserved ## ################################################################################### ## ## ## Copyright Notice ## ## ---------------- ## ## This script is not freeware. Any redistribution of this script without ## ## the written consent of CGI Works is strictly prohibited. Copying ## ## any of the code contained within these scripts and claiming it as your ## ## own is also prohibited. You may not remove any of these header notices. ## ## By using this code you agree to indemnify CGI Works from any ## ## liability that might arise from it's use. ## ## ## ## Technical Support Notice ## ## ------------------------ ## ## You will not be eligible for technical support if you modify this script ## ## in any way other than the variables in the config.pl file. If it is ## ## required that we fix any scripts after you have modified them, you will ## ## be charged before any work is performed. ## ## ## ################################################################################### ## add.cgi ## ## ------- ## ## This file controls the addition of members to your top list ## ## No editing needs to be done to this script. ## ################################################################################### require "config.cgi"; &parse_html; &parse_query; if($query{'action'} eq "") { print "Content-type: text/html\n\n"; print <
| E-Mail Address: | |
| Site Title: | |
| Site URL: | |
| Site Description: | Banner URL: | HTML } print < | Desired Password: |
Here\'s your information:
| USERNAME | $username |
| PASSWORD | $form{'password'} |
| SITE TITLE | $form{'title'} |
| SITE URL | $form{'url'} |
| BANNER URL | HTML if($num_of_banners > 0 && $form{'banner'} ne "") { print "$form{'banner'}"; } else { print "NO BANNER"; } print < |
| E-MAIL ADDRESS | $form{'email'} |
| DESCRIPTION | $form{'descrip'} |
| BANNER |
|
HTML
if($num_of_banners > 0 && $form{'banner'} ne "") {
print qq| |
Follow the link below to get acceptable banners
and text to use for your links.
Banners And Text Links
HTML
&scs_footer;
}
################################
## Send confirmation E-Mail ##
################################
sub sendConfirmMail {
open (MAIL,"|$mailCmd -t");
print MAIL "To: $form{'email'}\nFrom: $myEmail\n";
print MAIL "Subject: Welcome To The $site_title\n\n";
print MAIL "Welcome to the $site_title Top List.\n";
print MAIL "You can begin sending hits to the list at any time\n";
print MAIL "and you will be listed, if you send enough hits, at the\n";
print MAIL "next update. Below is your linking information.\n\n";
print MAIL "URL to send hits to:\n";
print MAIL "$cgi_url/rankem.cgi?action=in&id=$username\n\n";
print MAIL "URL to get banners and text links:\n";
print MAIL "$recip_url\n\n";
print MAIL "Edit Your Data:\n";
print MAIL "$cgi_url/add.cgi?action=edit\n\n";
print MAIL "Check Your Stats:\n";
print MAIL "$cgi_url/add.cgi?action=stats\n\n";
print MAIL "Your User ID: $username\n";
print MAIL "Your Password: $form{'password'}\n\n";
print MAIL "Thanks for joining,\nWebmaster, $site_title\n";
print MAIL "$html_url/$listPage";
close (MAIL);
}
###################################
## Print edit page for members ##
###################################
sub printEdit {
print <
Current Account Information
HTML
&scs_footer;
}
####################################
## Print stats page for members ##
####################################
sub printStats {
print <
HTML
&scs_footer;
}
STATS FOR: $form{'id'}
SITE TITLE
$info[5]
HITS IN TODAY
$info[0]
HITS OUT TODAY
$info[1]
TOTAL HITS SENT
$info[2]