#!/usr/local/bin/perl # FEATURES # # Automates the link submission and link editing processes by creating a datafile on your web site's server that is read # by Zeus. Zeus saves each submission into the ThemeSite database to be approved by you. # Sends email message to submitting webmaster # Optional - Require reciprocal link before accepting submission # ANTI-SPAM FEATURES # # Uses anti-spam word check to prevent spam submissions. Simple, but effective. # No complicated modifications to your web server # Tests for proper domain before submission # No email addresses embedded in HTML code for email harvesters to suck up # EMAIL FEATURES # # Validates the format of the submitted email address # Email options for SendMail, SMTP or None # Sends email notifications to an unlimited amount of email addresses # Optional - History Log # Can use separate optional Header and Footer files for HTML status and Thank You messages # Can use optional html Thank You page # Can use optional html error page ################################################################### ### SCRIPT CONFIGURATION VARIABLES ################################################################### $title_link_directory = "YourWebSite.com Link Directory"; # Recipients to receive email @all_recipients = ( "links\@yourwebsite.com", # Delete this line if you only need to send to one email address "directory\@yourwebsite.com" # the last email in the array does not have a trailing comma ); $links_directory = "/var/www/vhosts/yourwebsite.com/httpdocs/links"; $link_submission_file = "submission.dat"; # DO NOT change this name as Zeus will not be able to find it to read # Prevents calling the script from other sites. Use only lower case letters. Need each domain with and without 'www' @okaydomains=("yourwebsite.com","www.yourwebsite.com"); # Email Settings # # SMTP_SERVER: indicates the name of the host acting as the e-mail # gateway. "localhost" should work on most systems. # OR IF SMTP IS UNAVAILABLE TO YOU, USE SEND_MAIL - BUT NOT BOTH! # # To disable email sending, leave both = "" # #$SMTP_SERVER="localhost"; $SEND_MAIL="/bin/sendmail -t"; # Email Defaults $default_From = "links\@yourwebsite.com"; $default_Reply = "links\@yourwebsite.com"; $anti_spam_wrong_answer = "The anti-spam word is 'cat'. Please click your Back button to correct.\n"; $anti_spam_answer = "cat"; # To change the spam question, you must also change the actual question and form field value in the HTML code. # Creates activity log if $log_directory and $log_filename are not "". If log not desired set these to "" $log_directory = "/var/www/vhosts/yourwebsite.com/httpdocs/links"; $log_filename = "LinkSubmission.Log"; $log_add_date = 1; # 1 - Add Date and Time, 0 - No Date and Time $backgroundimage = "http://www.yourwebsite.com/images/graphics/background.jpg"; # If the files exist, they will be used as Header and Footer, otherwise default HTML is used. Set to "" if not used. $header_footer_directory = "/var/www/vhosts/yourwebsite.com/httpdocs/links"; # $header_filename = "headerinfo.txt"; # $footer_filename = "footerinfo.txt"; $header_filename = ""; $footer_filename = ""; # Always require a reciprocal link address before submission is allowed $require_link = 1; # 1 - Require Reciprocal link, 0 - Reciprocal link not required ################################################################# # SPECIAL HTML FORM VARIABLES ################################################################# ### REQUIRED IN HTML FORM # subject name of form for e-mail subject # required comma delimited list of required entry fields # If "all", then every form field in data_order will be required # If "none", then no form field will be required # data_order comma delimited list indicating what fields to actually # print and in what order. ### OPTIONAL # ok_url URL to go to if successful # not_ok_url URL to go to if unsuccessful ### CODE FOR HTML CONFIGURATION ############################## #