![]() |
Help with securing private storefront.
I'm working on customizing x-cart for our B2B site and part of that is disabling customer registration and securing the storefront so that no one can see it without an account created by us. Right now I'm trying to create a login page with something similar to authbox.tpl but I'm not really familiar enough with auth.php and the x-cart functions yet. If anyone could point me in the right general direction it would be much appreciated.
|
Re: Help with securing private storefront.
Open auth.php
At the bottom, before ?> add: Code:
// Force Login This will prevent the user from accessing the cart without being logged in. Open your .htaccess file and set the DirectoryIndex to index.php: Code:
DirectoryIndex index.php home.php index.html Create an index.php and input a login form page, something like: Code:
<?php I would also customize this page and your include/login.php to send them back to this index.php with an error message when a login is incorrect, etc., but this should get you going in the right direction. |
Re: Help with securing private storefront.
Thanks a bundle Jon, that set me in the right direction and saved me a good deal of work.
|
All times are GMT -8. The time now is 07:29 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.