X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   templates_c directory (https://forum.x-cart.com/showthread.php?t=5848)

leon 01-04-2004 09:58 PM

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 ?

Owl 01-07-2004 03:07 PM

just do a .htaccess on templates_c also then...
should work i think... havn't tried it myself yet :)

leon 01-07-2004 03:21 PM

Not sure about that, since it is managed by the Smarty template engine and could cause problems.

shan 01-07-2004 03:24 PM

just put a blank index.html page in there

leon 01-07-2004 03:32 PM

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. :wink:

Stefski 01-08-2004 04:15 AM

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. :?:

shan 01-08-2004 06:08 AM

na you would need to use an .htaccess file for that

Stefski 01-08-2004 06:27 AM

Thanks, will look into that.

S. :)

leon 01-08-2004 07:41 AM

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 ?

carlisleglass 01-09-2004 02:37 AM

Good question ...

Stefski 01-09-2004 03:45 AM

Quote:

Originally Posted by shan
na you would need to use an .htaccess file for that


I've done a bit of reading now about .htaccess files.

Am I right in thinking they're no use with IIS?

S. :?

leon 01-09-2004 08:55 AM

Yep, as far as I know .htaccess was created out of Unix boxes to control directory layout and access, and therefore has no use in Windows whatsoever. For windows you have to use the same commands you use in your own computer to control this, like if you are the admin on a Windows 2000 Server, you control access with your control panel.

I like windows as the number one desktop OS, but I dont trust it as an Online server for several reasons... its expensive, a lot of hassle, security breaches and holes, etc. Just my opionion.


All times are GMT -8. The time now is 02:55 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.