Gossamer Forum
Quote Reply
adding functions
I want to add some functions to webmail.cgi, that can be used by certain users. I was playing around a bit, and came up with the following:

1) in my plugin MyPlugin, add a function "test", and also add

use vars qw/@AUTH_CALLS/;

@AUTH_CALLS = qw/test/;

at the top to the file. The function returns $page, $tags.

2) add a template "test.htm"

3) then call the function as

webmail.cgi?do=plugin;plugin=MyPlugin;func=test;page=test.htm

Is this the way to do it, or are there better ways?

EDIT: I just noticed that I can also get the "test.htm" page displayed by just using "webmail.cgi?page=test.htm". But I want this page to be restricted to certain users, so what should I do?

I am new to GMail, so please bear with me. Thanks for any help.

Ivan
-----
Iyengar Yoga Resources / GT Plugins

Last edited by:

yogi: Nov 13, 2002, 5:24 AM