Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

acces to shop only after login


Arciuch

Recommended Posts

Posted

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

Posted

	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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...