##############################################################################
# If you encounter problems while trying to configure this script, help      #
# is available.  In order to get your problem solved:                        #
#       1) Read this file thoroughly                                         #
#       2) Consult the THANKS-CGI Frequently Asked Questions:                #
#               http://www.thanks-cgi.com/faq/                               #
#       3) If you are still having difficulty installing this script, send   #
#          e-mail to: support@thanks-cgi.com                                 #
#          Include any error messages you are receiving and as much detail   #
#          as you can so we can spot your problem.                           #
#                                                                            #
# Hopefully we will be able to help you solve your problems.  Thank you.     #
##############################################################################
# COPYRIGHT NOTICE                                                           #
# Copyright 1998 THANKS-CGI All Rights Reserved.                             #
#  Not for re-sell or re-distribution.                                       #
##############################################################################

# Setup Procedure

1.MODIFY: friend.cgi
  SET #!/usr/bin/perl as server required for PERL's directory. NOTE:Do not take away "#!"

  $filehead = "/home/yourdomain/friend/";
  # The REAL PATH of database and text files. If you don't know, you have to contact your server.

  $userfile = "user";
  # The file name of database. Do not need the extension name.

  $userclickfile = "userclick";
  # The number of clicks's database. Do not need the extension name.

  $usertypefile = "usertype.txt";
  # The text of TYPE OF PERSON. (DATA FILE)

  $userareafile = "userarea.txt";
  # The text of LOCATION. (DATA FILE)

  $userwayfile = "userway.txt";
  # The text of INTEREST. (DATA FILE)

  $mainpagefile = "main.htm";
  # MAIN PAGE

  $addpagefile = "add.htm";
  # THE PAGE OF REGISTRATION

  $clickpagefile = "click.htm";
  # THE PAGE OF DETAIL

  $managepagefile = "manage.htm";
  # THE PAGE OF WEBMASTER TO CONTROL

  $succpagefile = "succ.htm";
  # THE PAGE OF AFTER REGISTERED

  $errorpagefile = "error.htm";
  # THE PAGE OF ERROR MESSAGE

  $allow_noname = 0;
  # # 1=Allows visitor to register without filling out the NAME field.  0=DISABLE IT!

  $allow_notype = 0;
  # 1=Allows visitor to register without filling out the TYPE OF PERSON field.  0=DISABLE IT!

  $allow_noemail = 0;
  # 1=Allows visitor to register without filling out the E_MAIL field.  0=DISABLE IT!

  $allow_nourl = 1;
  # 1=Allows visitor to register without filling out the HOMEPAGE field.  0=DISABLE IT!

  $allow_noage = 0;
  # 1=Allows visitor to register without filling out the AGE field.  0=DISABLE IT!

  $allow_nojob = 1;
  # 1=Allows visitor to register without filling out the OCCUPATION field.  0=DISABLE IT!

  $allow_noarea = 1;
  # 1=Allows visitor to register without filling out the LOCATION field.  0=DISABLE IT!

  $allow_noinfo = 0;
  # 1=Allows visitor to register without filling out the INTRODUCTION field.  0=DISABLE IT!

  $allow_noway = 1;
  # 1=Allows visitor to register without filling out the INTEREST field.  0=DISABLE IT!

  $allow_html = 1;
  # 1=allow user to use HTML 0=DISABLE!

  $perpage = 10;
  # MAXIUM INFORMATION PER PAGE

  $manageperpage = 100;
  # MAXIUM INFORMATION PER PAGE (CONTROL MODE)

  $time_miss = +13;
  # TIME ZONE ADJUSTMENT

  $manage{"super"}="123456";
  # ID & PASSWORD OF WEBMASTER "super" is login ID, "123456" is login password. You can change to whatever you like!

  $masteremail = "you\@yourdomain.com";
   Your E-mail

  $mailprg = "/usr/sbin/sendmail -t";
  # The path of E-mail system on your server. Contact your server if you don't know. DO NOT TAKE AWAY "-t"!

  $fromemail = "you\@yourdomain.com";
   Your E-mail

  $sendtomaster = 1;
  # Auto notify webmaster when new registration. 1=ENABLE 0=DISABLE

------------------------------------------------------------------------

2. Upload all *.cgi, *.htm, *.txt to server by  "ASCII" mode.

3. Set "*.cgi" to chmod 755. Set all "*.htm", "*.txt" to chmod 666. 

4. Now, you can start testing your THANKS-CGI WEBFRIEND

5. After completing the above mentioned, you can modify all "*.htm" to change the outlook. You can create your own style!
   Notice: DO NOT change scripts begining with the following: "$" and "<!--.....-->".
            
#############################################################
# After setup of "THANKS-CGI WEBFRIEND", register with us for free URL link of your website from THANKS-CGI.com.
#############################################################

For additional information please visit our website at "http://www.thanks-cgi.com/"
Thank you for using THANKS-CGI scripts.