#!/usr/bin/perl ############################################################################ # # Guest Book 99.1.5 Configuration File # ############################################################################ # # $guestsrc # full and complete path of the guestbook database $guestsrc='/usr2/http/asa/book2/guestbook.txt'; ############################################################################# # # $scriptsrc # URL of the guestbook entry processor (guestadd.cgi) $scriptsrc='http://vvv.srcc.msu.su/cgi-bin/guestadd.cgi'; ############################################################################# # # $addsrc # URL to the guestadd.html $addsrc='http://vvv.srcc.msu.su/asa/book2/guestadd.html'; ############################################################################# # # $booksrc # URL to the guestbook viewer script (guestbook.cgi) $booksrc='http://vvv.srcc.msu.su/cgi-bin/guestbook.cgi'; ############################################################################# # # $backurl # URL to your home page $backurl='http://vvv.srcc.msu.su/asa/'; ############################################################################# # # $ontop # 0=off 1=on # option to determine the script to add TARGET="_top" to any links in # the guestbook database $ontop=1; ############################################################################# # # $ontop1 # 0=off 1=on # option to determine the script to add TARGET="_top" to the # 'Back to Home' link located at the end of the guestbook. $ontop1=0; ############################################################################# # # $ontop2 # 0=off 1=on # if you want to add TARGET="_top" to any links from the user comments, # turn it on $ontop2=1; ############################################################################# # # $bold # 0=off 1=on # determine to bold the user comments $bold=1; ############################################################################# # # $censoring # 0=off 1=on # determine to enable the censoring function to filter any bad words # from user comments field $censoring=1; ############################################################################# # # @badwords # define any words to filter from the user comments # use only if $censoring=1 @badwords=('fuck','shit','damn','fucking','messy','f u c k','bitch','asshole'); ############################################################################# # # $ipbarrier # 0 = off 1 = on # Option to turn on the IP filter function. The script will prevent # user to add any entry to the guestbook database once the user's # IP address match the filter database. $ipbarrier=0; ############################################################################# # # @ipfilter # Define the IP filter database. # (use only if $ipbarrier=1) # # Wildcard '*' allowed. @ipfilter=('202.10.1.*' , '202.10.10.2' ); ############################################################################# # # $namebarrier # 0 = off 1 = on # Option to turn on the domain name filter function. The script will # prevent user to add any entry to the guestbook database once the # user's domain name address match the filter database. $namebarrier=0; ############################################################################# # # @namefilter # Define the domain name filter database. # (use only if $namebarrier=1) # # wildcard '*' allowed. # # Caution: # -------- # *.domain.com match ip48.domain.com # ip48.user.domain.com # do not match domain.com # # user.* match user.com # user.net # do not match abc.user.com # user.domain.com # @namefilter=('*.domain.com' , '*.gov' , 'domain.net.*' , '*.domain.*'); ############################################################################# # # $headersrc # Full path to the guestbook header file. # # Guestbook header file is a normal HTML file which define the output # format of the guestbook. # # The script will print this HTML file before printing the # guestbook data so that you can control the output of the guestbook # directly from this header file without modify the script. # $headersrc='/usr2/http/asa/book2/guestheader.html'; ############################################################################# # # $guestfooter # Full path to the guestbook footer file. # # Guestbook footer is a normal HTML file which will be printed after # the guestbook data. # $guestfooter='/usr2/http/asa/book2/guestfooter.html'; ############################################################################# # # $header # Full path to the preview header file. # # Preview header file is a normal HTML file which define the output # of the guestbook preview section. # # The script will print this HTML file before printing the # guestbook so that you can control the output of the preview section # directly from this header file without modify the script. # $header='/usr2/http/asa/book2/preheader.html'; # You can indeed use the same guestbook header for both of the guestbook and # preview section, e.g.: # $header='/home/httpd/html/devel/gbk-99.1.5/guestheader.html'; # ############################################################################# # # $footer # Full path to the preview footer file. # # Preview footer file is a normal HTML file which will be printed # after the guest book data. # $footer='/usr2/http/asa/book2/prefooter.html'; ############################################################################# # # $entryno # Max number of guest book entry display on a page $entryno=15; ############################################################################# # # $unlimit # Allow unlimit entry in the database # 0 = disable # 1 = enable # # if not allow ( $unlimit=0 ), specific the max number of entry then # # $max_entry # Maximum number of entry allow in the database $unlimit=1; $max_entry=100; ############################################################################# # # $abuse # Determine to enable the anti-abuser function or not # 0 = Disable # 1 = limit entry by counting the total no. of characters # 2 = limit entry by counting the total no. of words $abuse=1; ############################################################################# # # $maxchar # Set the max no of characters/words to limit the new user entry # (use only if $abuse not equal to zero) $maxchar=500; ############################################################################# $usepre=0; #do not modify, no longer used (pre) ############################################################################# # # $notify # Determine to mail a notification message to you when a new entry # was made # 0 = off 1 = on $notify=1; ############################################################################# # # $greeting # Determine to mail a greeting message to the entry's sender # 0 = off 1 = on $greeting=0; ############################################################################# # # @from # Email address where notification message to send @from=('asa@guru.ru'); # # if you want to have more than one email to receive notification message, # follow the example below: # # @from=('ray@ray.net','abc@ray.net','hk@ray.net'); # ############################################################################# # # $mail # full path of the sendmail $mail='/usr/lib/sendmail'; ############################################################################# # # $replace # allow HTML tag in the comments # 0 = allow # 1 = not allow, all HTML tags will be removed from the comments $replace=1; ############################################################################# # # $useformat # if you want to format the output of the user comments, turn it on # 0 = on, 1 = off # # ** If you turn this function on, any long lines will break into # multiple lines. This MAY break any HTML tags in the user comments. # You are strongly recommended NOT allow any HTML tag in the # comments by assigning 1 to the variable $replace. # # It is NOT recommended to allow HTML tag and format the user # comments at the same time. $useformat = 0; ############################################################################# # # $addto # determine where the new entry to be added. # 0 = the top of the database # 1 = the bottom of the database $addto=0; ############################################################################# # # $admin_pass # Password used for administration function $admin_pass='prez'; ############################################################################# # # $admin_url # URL of the guestbook administration script (gbkadmin.cgi) $admin_url='http://vvv.srcc.msu.su/cgi-bin/gbkadmin.cgi'; ############################################################################# # # $util_url # URL of the guestbook utility script (gbkutil.cgi) $util_url='http://vvv.srcc.msu.su/cgi-bin/gbkutil.cgi'; ############################################################################# # # $mail_info # Include server variables in the email notification # (e.g. Server protocol, Remote host, Remote IP address...) # 0 = on , 1 = off $mail_info = 0; ############################################################################# # # $guest_info; # Print server variables to each entries # 0 = on, 1 = off # # $guest_loc; # Determine the location where to print the server variables # 0 = at the top of the entry # 1 = at the end of the entry $guest_info = 1; $guest_loc = 1; ############################################################################# # End of Configuration Section ############################################################################# 1;