Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

don't delete 'index.html'

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
smartymoon
Smarty Rookie


Joined: 29 Apr 2003
Posts: 15

PostPosted: Sun Aug 22, 2004 3:00 am    Post subject: don't delete 'index.html' Reply with quote

I need following variables.

files_kept_in_cache and files_kept_in_template_compiled

to prevent index.html from deleting when we clear the cache or templates_compiled folder.

As you know, we keep the file 'index.html' for disabling the listing of the folder.
But when we clear the cache or template_compiled folder, it clears all the files in the folder.
We may keep in the above array the file names which are not to be deleted
so that the smarty class will not delete the files in the above array.

thanks

s moon
Back to top
View user's profile Send private message
Ceph
Smarty Rookie


Joined: 25 Nov 2003
Posts: 24

PostPosted: Thu Oct 21, 2004 10:43 pm    Post subject: Reply with quote

You can disable directory listings via Apache inside an .htaccess file inside your templates_c folder:

Options -Indexes

and viola, no more directory listings.
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Fri Oct 22, 2004 3:30 am    Post subject: Reply with quote

Your cache and compile files shouldn't be in the document root of your web server, and even if you really want them there (?) they should at least be in a subdirectory of their own.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP