Gossamer Forum
Home : Products : Links 2.0 : Customization :

Re: Auto Validate...Anyone have a mod?

Quote Reply
Re: Auto Validate...Anyone have a mod? In reply to
In add.cgi you'll find the following code, just change $db_valid_name into $db_links_name.

old:
Code:
# Print out the validate input to a "validation database" where it is stored until
# the admin decides to add it into the real database.
open (VAL, ">>$db_valid_name") or &cgierr("error in add_record. unable to open validate file: $db_valid_name. Reason: $!");
flock(VAL, 2) unless (!$db_use_flock);
print VAL &join_encode(%in);
close VAL; # automatically removes file lock

new:
Code:
# Print out the validate input to a "validation database" where it is stored until
# the admin decides to add it into the real database.
open (VAL, ">>$db_links_name") or &cgierr("error in add_record. unable to open validate file: $db_links_name. Reason: $!");
flock(VAL, 2) unless (!$db_use_flock);
print VAL &join_encode(%in);
close VAL; # automatically removes file lock


[This message has been edited by chrishintz (edited April 29, 1999).]
Subject Author Views Date
Thread Auto Validate...Anyone have a mod? Tim Mousel 1490 Apr 29, 1999, 5:36 AM
Post Re: Auto Validate...Anyone have a mod?
cK 1466 Apr 29, 1999, 5:43 AM
Post Re: Auto Validate...Anyone have a mod?
Tim Mousel 1464 May 6, 1999, 10:06 AM
Post Re: Auto Validate...Anyone have a mod?
widgetz 1466 Jul 24, 1999, 9:48 PM
Post Re: Auto Validate...Anyone have a mod?
timryan 1464 Jul 25, 1999, 8:58 AM
Post Re: Auto Validate...Anyone have a mod?
timryan 1459 Jul 25, 1999, 12:04 PM
Post Re: Auto Validate...Anyone have a mod?
Gregorio 1459 Sep 26, 1999, 11:40 AM
Post Re: Auto Validate...Anyone have a mod?
WebKing 1456 Feb 11, 2000, 12:35 AM
Post Re: Auto Validate...Anyone have a mod?
Bmxer 1467 Feb 11, 2000, 1:48 AM