Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [rsahertian] "report a bad link" plugin...

Quote Reply
Re: [rsahertian] "report a bad link" plugin... In reply to
Try replacing the top of the script, down to just before;

Code:
sub main {


.. and change it to;

Code:
#!/usr/bin/perl
# ==============================================================
#
# Report a bad link version '2.1.1a'
# Links SQL code copyright Gossamer Threads
# http://www.gossamer-threads.com
# Modifications and code segments copyright PUGDOG Enterprises, Inc.
# http://www.pugdog.com
# Updates for Links SQL 2.1.1 Compatiblity by Andy
# http://www.ace-installer.com
#
# ==============================================================

# Load required modules.
# ---------------------------------------------------
use lib '/path/to/your/admin/folder';
use Links qw/$IN $DB $CFG $USER/;
use strict;
use Links::SiteHTML;
use Links::Authenticate;
use Links::Plugins;
use vars qw/$BAD_LINK_CFG/;
use CGI::Carp qw(fatalsToBrowser);

local $SIG{__DIE__} = \&Links::fatal;

Links::init('/path/to/your/admin/folder');
Links::init_user();

# make sure they are logged in....you can comment out the next 4 lines if you don't mind them not being logged in...
if (!$USER) {
print $IN->header();
print Links::SiteHTML::display( 'error', { error => "You need to be logged in to use this function...." } );
exit;
}

# lets initiate it...
&main;

You need to change the 2 instances of /path/to/your/admin/folder to your path.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: Sep 11, 2003, 3:06 AM
Subject Author Views Date
Thread "report a bad link" plugin... rsahertian 2830 Sep 10, 2003, 1:46 PM
Thread Re: [rsahertian] "report a bad link" plugin...
Andy 2790 Sep 10, 2003, 1:49 PM
Thread Re: [Andy] "report a bad link" plugin...
rsahertian 2781 Sep 11, 2003, 2:18 AM
Thread Re: [rsahertian] "report a bad link" plugin...
Andy 2769 Sep 11, 2003, 2:31 AM
Thread Re: [Andy] "report a bad link" plugin...
rsahertian 2773 Sep 11, 2003, 3:02 AM
Thread Re: [rsahertian] "report a bad link" plugin...
Andy 2765 Sep 11, 2003, 3:05 AM
Thread Re: [Andy] "report a bad link" plugin...
rsahertian 2766 Sep 11, 2003, 3:40 AM
Post Re: [rsahertian] "report a bad link" plugin...
rsahertian 2757 Sep 11, 2003, 4:49 AM
Thread Re: [Andy] "report a bad link" plugin...
pugdog 2779 Sep 11, 2003, 4:55 AM
Post Re: [pugdog] "report a bad link" plugin...
Andy 2750 Sep 11, 2003, 4:57 AM
Post Re: [pugdog] "report a bad link" plugin...
dwh 2595 Jul 21, 2004, 11:41 AM