Ouch... Thought I fixed that. It's a globals thing. I'll post a fixed archive.
It was just an omission/typo on one point.
I was typing on-line in the edit box, and added the variable to the Links import, rather than the use vars line.
Just adjust the top of your recommend_it.cgi to :
use lib '/path/to/links/sql/admin'; ## you need to set this to your own local path!
use Links qw/$DB $IN $USER $CFG/; ## CHANGE THIS
use Links::SiteHTML;
use Links::Authenticate;
use GT::Mail;
use Links::Plugins;
use vars qw/$REC_CFG/; ## add this.PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
It was just an omission/typo on one point.
I was typing on-line in the edit box, and added the variable to the Links import, rather than the use vars line.
Just adjust the top of your recommend_it.cgi to :
Code:
use strict; use lib '/path/to/links/sql/admin'; ## you need to set this to your own local path!
use Links qw/$DB $IN $USER $CFG/; ## CHANGE THIS
use Links::SiteHTML;
use Links::Authenticate;
use GT::Mail;
use Links::Plugins;
use vars qw/$REC_CFG/; ## add this.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum