Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

templates_c directory

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 01-04-2004, 09:58 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default templates_c directory

The cache for templates in templates_c directory can be viewed by anybody, I already protected at root level with .htaccess from prying eyes so that the tpls cant be seen, but is there any other method in order to avoid anybody from getting into that directory completely ?
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #2  
Old 01-07-2004, 03:07 PM
  Owl's Avatar 
Owl Owl is offline
 

Advanced Member
  
Join Date: Mar 2003
Location: Sweden
Posts: 92
 

Default

just do a .htaccess on templates_c also then...
should work i think... havn't tried it myself yet
__________________
-----------------------------------
4.2 rox...

http://www.fivestar.nu | www.nystil.se | www.hidealite.se
Reply With Quote
  #3  
Old 01-07-2004, 03:21 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Not sure about that, since it is managed by the Smarty template engine and could cause problems.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #4  
Old 01-07-2004, 03:24 PM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

just put a blank index.html page in there
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #5  
Old 01-07-2004, 03:32 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Actually I was going to put an index.php with redirect to root, but I didnt try it cause I thought it would damage the smarty output somehow.

But your the expert, if you say it will work, thats ok for me.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #6  
Old 01-08-2004, 04:15 AM
 
Stefski Stefski is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: England
Posts: 52
 

Default

Quote:
Originally Posted by shan
just put a blank index.html page in there

Shan, would this protect downloadables from unauthorised access too if a blank index.html file were placed in the downloadables' folder.

S.
__________________
Version 3.5.0 using Windows IIS
UK Based.
Reply With Quote
  #7  
Old 01-08-2004, 06:08 AM
  shan's Avatar 
shan shan is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Birmingham, UK
Posts: 6,163
 

Default

na you would need to use an .htaccess file for that
__________________
Looking for a reliable X-cart host ?
You wont go wrong with either of these.

EWD Hosting
Hands On Hosting
Reply With Quote
  #8  
Old 01-08-2004, 06:27 AM
 
Stefski Stefski is offline
 

Advanced Member
  
Join Date: Dec 2003
Location: England
Posts: 52
 

Default

Thanks, will look into that.

S.
__________________
Version 3.5.0 using Windows IIS
UK Based.
Reply With Quote
  #9  
Old 01-08-2004, 07:41 AM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

Quote:
Originally Posted by shan
just put a blank index.html page in there

I have a question here regarding this. If I put an index page in that folder, what happens when I clear the templates from admin ? Will it be erased as well or does xcart only erase tpl files in that folder ?
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #10  
Old 01-09-2004, 02:37 AM
  carlisleglass's Avatar 
carlisleglass carlisleglass is offline
 

eXpert
  
Join Date: Aug 2003
Location: Carlisle, UK
Posts: 316
 

Default

Good question ...
__________________
Darren Kierman
Carlisle Glass (http://www.carlisleglass.co.uk/)
... running X-Cart Gold 4.4.5 [unix]
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 05:44 AM.

   

 
X-Cart forums © 2001-2020