Well, each script will have minor differences, usually in the
use Links qw/.../
part, but the real change is you need to add the two init lines.
You only need the
Links::init_user...
line if you've declared $USER in the "use Links qw/../" line.
If you plan to use Gossamer Community, though, it's a good idea to leave the $USER variables in place.
In my scripts, at least, I check to see if logons are enabled, and use $USER when it is. Some of my scripts will only run if $USER is enabled....
To summarize, the only 3 lines that need to be added or changed:
Code:
use Links qw/$IN $DB $CFG $USER/; # I need these vars - $variables may be different in each script.
Links::init ('/path/to/admin'); # Required in _ALL_ scripts for Gossamer Community compatibility
Links::init_user ('/path/to/admin'); # Optional -- if $USER is defined in the above line, this line is necessary.
## /path/to/admin is the same as your "use lib '/path/to/admin' "
PUGDOG� Enterprises, Inc. The best way to contact me is to
NOT use Email.
Please leave a PM here.