Arciuch Posted October 17, 2005 Posted October 17, 2005 as i wrote in topic i want to make 1st site where will be only login panel and if some1 wont log wont enter farer only login page for not registered users
Arciuch Posted October 17, 2005 Author Posted October 17, 2005 or just to deny to access to cart or smth
Arciuch Posted October 17, 2005 Author Posted October 17, 2005 if (! tep_session_is_registered('customer_id')) { $my_filename=str_replace(DIR_WS_HTTP_CATALOG,'',$_SERVER['PHP_SELF']); $permitted=array('create_account.php','password_forgotten.php','login.php'); if (! in_array($my_filename,$permitted)) { tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } } ok i found this one but i wonder where to put it to good properly?
Arciuch Posted October 18, 2005 Author Posted October 18, 2005 anybody know i rly need help till today ;/
Recommended Posts
Archived
This topic is now archived and is closed to further replies.