Change the following codes:
Code:
# Print out the modified record to a "modified database" where it is stored until
# the admin decides to add it into the real database.
open (MOD, ">>$db_modified_name") or &cgierr("error in modify.cgi. unable to open modification database: $db_modified_name. Reason: $!");
flock(MOD, $LOCK_EX) unless (!$db_use_flock);
print MOD &join_encode(%in);
close MOD; # automatically removes file lock
with the following codes:
Code:
# Print out the validate input to a "modification database" where it is stored until
# the admin decides to add it into the real database.
open (MOD, ">>$db_links_name") or &cgierr("error in modify_record. unable to open validate file: $db_links_name. Reason: $!");
flock(MOD, 2) unless (!$db_use_flock);
print MOD &join_encode(%in);
close MOD;
# automatically removes file lock
# Print out the MODidate input to a "MODidation database" where it is stored until
# the admin decides to add it into the real database.
open (MOD, ">>$db_links_name") or &cgierr("error in add_record. unable to open MODidate file: $db_links_name. Reason: $!");
flock(MOD, 2) unless (!$db_use_flock);
print MOD &join_encode(%in);
close MOD;
# automatically removes file lock
Regards,
------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com * Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.