|
Posted by John Bokma on January 26, 2007, 1:55 pm
Please log in for more thread options
joakim.grahl@gmail.com wrote:
> Is it possible to have one file (perl script) that is available for
> BOTH logged-in users AND non-logged in "guests"?
> The Perl script could then simply reveal the extra, sensitive
> information, only when the environment variable $ENV is
> defined (i.e., not null).
You probably mean REMOTE_USER ?
> The point is, I don't want to write two separate (yet, almost
> identical) versions of the script; one full access, and one restricted
> access.
Simple answer to that one: create a module, or maybe better: create two.
One base module with basic for all functionality, and one that inherits
and adds extra functionality for logged in users. That way you don't risk
a user not logged in finding a backdoor into the secure part.
--
John Need help with SEO? Get started with a SEO report of your site:
--> http://johnbokma.com/websitedesign/seo-expert-help.html
|