eurosystem Posted February 6, 2004 Share Posted February 6, 2004 I would like to know if it's possible to create a door page so that the first thing that customers see is the loginbox with the availibility to register. I want that only registered users can see the shop. Thank you very much Link to comment Share on other sites More sharing options...
♥kymation Posted February 7, 2004 Share Posted February 7, 2004 Add the following code to the bottom of includes/application_top.php (just before the ?>): if ((basename($PHP_SELF) != "login.php") || (basename($PHP_SELF) != "create_account.php")) || (!tep_session_is_registered('customer_id'))) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Customers will only be able to access create_account.php (to set up a new account) or login.php (to log in) until they have logged in. Any attempt to get to another page will result in a redirect to the login page. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.