RE: Announcement: Smarty 1.4.3 now available
| From: | Monte Ohrt | Date: | Wed, 20 Jun 2001 22:19:10 +0000 |
| Subject: | RE: Announcement: Smarty 1.4.3 now available | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-913@lists.php.net to get a copy of this message | ||
Your best option is to move everything outside of document root. There
is nothing stopping someone from seeing your template sources in the
/templates directory, and nothing Smarty can do about it either.
hans@linux.gelrevision.nl wrote:
>
> On 20-Jun-01 Monte Ohrt wrote:
> > One easy and secure method is to put directives in apache (or via
> > .htaccess) to disallow direct access to /configs, /templates and
> > /templates_c directories.
>
> That isn't an opion for us. phpReview will be distributed for all webservers.
>
> I suggest that a simple redirect could be something like:
>
> if (basename($PHP_SELF) == "file.tpl.php")
> {
> header( "location: some configurl");
> }
>
> I'm using it for all the classes I'm writing. The question is what kind of
> default value could be used, maybe the smarty site :).
>
> Regards,
>
> Hans
> --
>
> Linux : http://linux.gelrevision.nl/
> phpReview : http://phpReview.nl.linux.org/
> Boeken : http://nl.linux.org/boeken/
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/