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

Running CGI from Plugin Menu

Quote Reply
Running CGI from Plugin Menu
Am I better to run a seperate CGI from the plugin menu, or turn it into an internal sub of my plugin?

Example:

install.pm
myplugin.pm
catdepth.cgi <- repair function

Menu:

Installed Plugins

My Plugin
Menu Item 1
Repair Function <- repair function




If it is better run this as a bundled cgi, then how do I call this file from my sub?

sub repair {
# -------------------------------------------------------------------
# This subroutine will get called whenever the user clicks
# on 'repair' in the admin menu. Remember, you need to print
# your own content-type headers; you should use
#
# print $IN->header();
#

}

Thanks again!

Last edited by:

sooke: May 14, 2002, 10:07 AM
Subject Author Views Date
Thread Running CGI from Plugin Menu Ian 2197 May 14, 2002, 10:04 AM
Thread Re: [sooke] Running CGI from Plugin Menu
Alex 2123 May 14, 2002, 10:07 AM
Post Re: [Alex] Running CGI from Plugin Menu
Ian 2097 May 14, 2002, 10:11 AM