Ah...that is basically a cosmetic error. The search engine will still only be accessible by your domain!!!!!!!!
To clean up the cosmetic error, try the following:
1) Add the following codes to the
elsif statements in the
sub main routine of the
db.cgi file:
Code:
elsif ($in{'domain_error'}) { if ($per_view) { &html_domain_error; } else { &html_unauth; } }
2) Change the following codes in the
sub cgi_error routine in the
db.cgi file:
TO THE FOLLOWING CODES:
Code:
&html_domain_error;
return;
3) Then create a new sub-routine in the
html.pl file called
sub html_domain_error. It should look like the following:
Code:
sub html_domain_error {
#---------------------------------------------------------
# Displays Error Message for Add, Delete, and Modify Forms
&html_print_headers;
print qq|
<html><head><title>$html_title: Bad Domain Referrer</title></head>
<body bgcolor="ffffff">
<div align="center"><center>
<table border="0" width="80%" cellpadding="2" cellspacing="0">
<tr><td valign="top">
<$font>
<b>$html_title: Bad Domain Referrer</b></font>
<p>
<$font>
This script cannot run from the following location:
<p><center><a href="$ENV{'HTTP_REFERER'}">$ENV{'HTTP_REFERER'}</a></center>
</font>
</td></tr></table></div></center>
</body></html>
|;
}
I REALLY HOPE THIS HELPS!
Regards,
------------------
Eliot Lee Anthro TECH,L.L.C
www.anthrotech.com ----------------------
[This message has been edited by Eliot (edited January 08, 2000).]
[This message has been edited by Eliot (edited January 08, 2000).]