lildagg3r Posted April 30, 2004 Share Posted April 30, 2004 I am looking for some ideas to creating my index.html (not index.php) home page for my clients to log on first before viewing any of the webpages. They reason i am taking this approach is that main my clients are home owners and would like thier home to be a private sector of their sale. Here what i can do and can not do. I can create my index.html home page with out a problem and add the following box's such as username: ([email protected]) Password : (xxxxxxx) etc... What i am needing help on how to link the log on page to the index.php page once the client hit the logon button. If anyone who has a scripte and instruction that they would like to share please post. Install Docs | docsCat | apiStandards | PageIndex Link to comment Share on other sites More sharing options...
♥kymation Posted April 30, 2004 Share Posted April 30, 2004 If you want to restrict your site to people who are logged in, just put this at the bottom of includes/application_top.php: if ((basename($PHP_SELF) != "login.php") && (basename($PHP_SELF) != "create_account.php") && (basename($PHP_SELF) != "password_forgotten.php") && (!tep_session_is_registered('customer_id'))) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Your customers cannot view the site without being logged in. Only the Login, Password Forgotten, and Create Account pages are accessible. If you don't want your customers to be able to create an account, just remove the"&& (basename($PHP_SELF) != "create_account.php")" from the above. 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...
agiftcodotcom Posted May 1, 2004 Share Posted May 1, 2004 In the contributions, do a search for "Login", there is one that makes it so you can have your login on an outside HTML page. (Sorry I don't know the exact one). Contributions I used : Updated 06-13-04 23:42 ---------------- Vote on My Graphis Poll Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.