Wouldn't be that hard to do copy the code below and save as disclaimer.cgi:
#!/usr/bin/perl
eval {
($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX /
($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows \
require "admin/links.cfg"; # Change this to full path to links.cfg if you have problems.
require "$db_lib_path/db_utils.pl";
require "$db_lib_path/category.def";
};
if ($@) {
print "Content-type: text/plain\n\n";
print "Error including libraries: $@\n";
print "Make sure they exist, permissions are set properly, and paths are set correctly.";
}
# ========================================================
eval { &main; }; # Trap any fatal errors so the program hopefully
if ($@) { &cgierr("fatal error: $@"); } # never produces that nasty 500 server error page.
exit; # There are only two exit calls in the script, here and in in &cgierr.
sub main {
#-------------------------------------------------------------------
local (%in) = &parse_form;
my (%rec) = &get_record ($in{'ID'});
print "Content-type: text/html\n\n";
print qq|
<html>
<head>
<title>
Before Entering
</title>
</head>
<body text="#000000" bgcolor="#333333" link="#3333ff" vlink="#ffffff" alink="#ffffff" TOPMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" MARGINWIDTH="0" MARGINHEIGHT="0">
<table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=1 WIDTH="100%" BGCOLOR="#ffffd2" >
<tr> <td> <center><table BORDER=0 COLS=1 WIDTH="100%" > <tr> <td BGCOLOR="#ffff99">
<font size=-1 color="000000">
Before entering you must agree to the following:
</font></td> </tr> <tr> <td>
<font size=-1 color="000000">
Before going onto $rec{'Name'}
$rec{'Description'}
<b><a href ="$build_root_url/$rec{'Name'}">(I agree)</a> <a href ="$build_root_url/$rec{'Name'}">(I disagree)</a></b>
</font>
</td> </tr> </table></center> </td> </tr> </table>
</body>
</html>
|;
}
Then instead of linking directly to the category in print cat. You'd link to discliamer.cgi?ID=<%ID%>
Where <%ID%> is the category id.
This is all just a suggestion off the top of my head so it should work fine but you might want to make some alterations to it.
Good Luck!
Glenn
Host Links
http://cgi-resource.co.uk/links