Conditionally disabled plugins
| From: | anders dot janson at mailbox dot swipnet dot se | Date: | Thu, 23 May 2002 21:09:44 +0000 |
| Subject: | Conditionally disabled plugins | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-4389@lists.php.net to get a copy of this message | ||
I want to disable some/most of my functions for users that are not logged in on my site.
Disable=not recognize the functions as valid tags, even if they are defined in the plugin directory.
I still want the functions to be plugins, if possible.
What the f--- am I doing? Most texts entered by users are handled as templates. Access to template
functions is more or less limited, depending on who you are. Some users (admins) will have access to
all functions.
And I'd like the plugins to be clean, not having authorization checks in every plugin, so...
Is there any other solution besides hacking Smarty?
Any ideas or suggestions?
/Anders
-------------------------------------------------
WebMail från Tele2 http://www.tele2.se
-------------------------------------------------