Приглашаем посетить
Екатерина II (ekaterina-ii.niv.ru)

WebSearch

################################################################
#                                                              #
#   websearch.pl - Perl Script Search Engine for Web Sites     #
#                                                              #
#      Written by Michael Hall - mikeh@isaac.biola.edu         #
#   Copyright ©1995 by Michael Hall, All Rights Reserved.      #
#                                                              #
################################################################

YOU ARE WELCOME TO USE THIS SCRIPT ON YOUR SITE.  HOWEVER, NO WARRANTIES ARE MADE OR
IMPLIED.  MICHAEL HALL, NOR VIRTUAL MARKETING TECHNOLOGIES, CAN BE HELD RESPONSIBLE
FOR ANYTHING REGARDING THE USE OF THIS SCRIPT.  THE PERSON RUNNING THIS SCRIPT RETAINS
FULL RESPONSIBILITY AND USES AT HIS/HER OWN RISK.  IF YOU USE THIS SCRIPT AS PART OF
A SITE THAT CHARGES USERS FOR ACCESS OR CHARGES FOR ADVERTISING YOU ARE REQUIRED TO
PAY THE FEE OF $50.00 TO CONTINUE USING THIS SCRIPT.  FAILURE TO DO SO CAN RESULT
IN CRIMINAL CHARGES AS A VIOLATION OF U.S. COPYRIGHT LAWS.  THERE IS NO REQUIRED
CHARGE TO USE THIS SCRIPT ON A NON-COMMERCIAL SITE HOWEVER, A SMALL FEE WOULD BE
APPRECIATED IF YOU USE THIS SCRIPT FOR MORE THAN 30 DAYS.  AT THE MINIMUM, WE ASK THAT
A LINK BE MADE TO THE SCRIPTS HOME AT HTTP://WWW.VIRTUALCENTER.COM/SCRIPTS2 AS A THANK
YOU.  IF YOU OPERATE A SITE THAT SELLS ADVERTISING AND WOULD LIKE TO NEGOTIATE ADVERTISING
IN LIEW OF THE REQUIRED PAYMENT FOR USE OF THIS SCRIPT, PLEASE E-MAIL VMT@AIRMAIL.NET.



INSTRUCTIONS FOR SETTING UP THE WEBSEARCH.PL SCRIPT

This script requires atleast Perl v4 to run.  Place it in your cgi-lib
directory on your web server and "chmod 755" to turn it into an
executable script.

First, there are just a few variables you'll need to edit.  They are located at the top of
the script.  First and foremost, you'll need to tell it where perl is on your system.  Do
that in the very first line of the script.  Next, check the variables list just under the
title information.

$MaxWords - This is the maximum number of words you'll allow people to enter in the
	description of their web site.  Keeping this number low is probably a good idea
	since nobody likes to read a book and it just takes up that much more room on your
	server.  If you get several thousand web sites on your database, that could add up
	to gigabytes.
	
$BaseDir - This is the location to the directory where your files will be.

@Categories - You'll need to list each category you'll allow people to post their
	listings in.  Use the variable in the script as an example.
	
$allow_html - If you want your users to have the ability to add html commands to their
	descriptions then set this to 1.  Otherwise, set it to 0 and the script will filter
	out any html commands the user enters.
	
$Header - This is your header information that you want displayed at the top of every screen.
	You can enter this information between the "EOT" commands just like you would if you were
	doing a normal html page.  You don't have to worry about putting a "\" in front of every
	quote.  Just type it in just like you would on a regular web page.
	
$Footer - This is just like the $Header variable only it displays this at the bottom of every
	page.  Follow the steps in $Header to edit this section.
	
Now place your files (any graphics, etc.) in the directory you chose in $BaseDir.  This
includes your "index.html" and "AddURL.html" pages.  You'll need to "chmod 777" the
directory you put these in so the script can write files in this directory.

You should now be ready to go.  When adding url's to the database, the system checks to
make sure all information is entered and checks to make sure the description fits the
maximum number of words that can be entered.  If everything checks out okay, it writes it
to the appropriate category file.  There is one file for each category.

When a user searches, they can enter a keyword (or keywords) and the system will check for
any web sites matching those keywords in EACH category and displays them all.  Or, the
user can simply select one of the categories and see every web site in that category
displayed.  This is very similar to the way the "Yahoo!" search engine operates.

The user can also select "Random Link" and the system will randomly pick a url in one
of the categories and automatically send the user to that web site.
	

NOTICE ON SUPPORT
-----------------

Support is only available to those who purchased support when they purchased this script.
To gain that support, simply send an e-mail to "vmt@airmail.net" and include
the support number you got with the e-mail for this script.

If you did not purchase the support but find you are having problems, you can send
one e-mail request for support.  You must purchase support if you need additional
help.  The reason for this is to keep the costs down on this script as low as possible.
However, we cannot spend a lot of time answering e-mail for a program that costs so
little.  To purchase support for 3 months, the cost is $25.00 or $35.00 for six months of
support.  Simply send a check or money order made payable to Virtual Marketing Technologies to:
Virtual Marketing Technologies, 1510 North Hampton Rd., Suite 270, DeSoto, TX  75115.

Commercial sites must pay the purchase price of the scripts before obtaining support.



NOTICE ON NEW VERSIONS
----------------------

If there is something you would like to see added in upcoming versions, please 
e-mail "vmt@airmail.net" and let us know.

If you purchased support or the next version when you ordered this script, you will
automatically receive the next version at no charge.  If you didn't purchase support
or the next version, you will be notified through e-mail when the next version is
available and will be given the ability to purchase that script at a 10% discount.


We hope you enjoy this script and find it useful.