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

Re: [Andy] CGI file rename problem?

Quote Reply
Re: [Andy] CGI file rename problem? In reply to
I have used the Plugin Wizard to create the following CGI file to display a template sample.html. I added a file: zzz.cgi, and edited it in the wizard before installing. I am still getting a 500 IS error! Blush

=======================

#Code to display "sample.html" placed in templates directory

use strict;
use lib 'MY ADMIN PATH';
use Links qw/$IN $DB $CFG/;
use Links::SiteHTML;
use Links::Plugins;
use CGI::Carp qw(fatalsToBrowser);

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

Links::init('MY ADMIN PATH');


&show_form;


sub show_form {

print $IN->header();
print Links::SiteHTML::display('sample');

}
Subject Author Views Date
Thread CGI file rename problem? server0000 3006 Aug 8, 2005, 12:20 AM
Thread Re: [server0000] CGI file rename problem?
Andy 2895 Aug 8, 2005, 1:22 AM
Thread Re: [Andy] CGI file rename problem?
server0000 2878 Aug 8, 2005, 11:05 AM
Thread Re: [server0000] CGI file rename problem?
Andy 2899 Aug 8, 2005, 11:55 AM
Thread Re: [Andy] CGI file rename problem?
server0000 2899 Aug 8, 2005, 12:07 PM
Post Re: [server0000] CGI file rename problem?
Andy 2897 Aug 8, 2005, 12:09 PM