garlicbred Posted February 4, 2005 Posted February 4, 2005 Hi. I have been looking for a script that allows a user to login & see protected members pages. Theres many out there, but Im in a hurry & Im not a pro programmer. I heard that OSC has this functionality. Specifically I need it to: Protect a range of pages (super security not needed) password is chosen - not generated Auto password retrieval Access levels Stats available to see what the users are looking at/downloading the most Ive seached this forum & the main site but cant find any info. Can someone point me in the right direction please, or at least indicate whether or not OSC can easily acieve the above. Thanks ant
Guest Posted February 4, 2005 Posted February 4, 2005 You can protect any page in osCommerce by placing the following code below the call to application_top.php: if (!tep_session_is_registered('customer_id')) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } Matti
garlicbred Posted February 4, 2005 Author Posted February 4, 2005 You can protect any page in osCommerce by placing the following code below the call to application_top.php: ?if (!tep_session_is_registered('customer_id')) { ? ?$navigation->set_snapshot(); ? ?tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); ?} Matti <{POST_SNAPBACK}> OK, so looking at the code ... if someone isnt logged in then show the login page... If i read that correctly, that should do it I think... yes Although I was hoping for some kinda special plug-in thingy ... has anyone developed any brilliant scripts made for slow designers - non programmers. Youd think that kinda thing would be pretty common. Thanks for that code Matti
Guest Posted February 4, 2005 Posted February 4, 2005 Search Contributions. Not sure what type of pages you wish to protect? Matti
Recommended Posts
Archived
This topic is now archived and is closed to further replies.