Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

securing one page


Helaman

Recommended Posts

I have a web site where there are products and prices for retail.

 

I want to have one page with just prices for distributors. I have been searching

for info on how to secure one web page with a password and ID, but have come up dry.

 

I wanted to create a sub driectory and apply a htacces file to it. I just can't figure how to get a correct path to the new directory. I am not even sure what to ask.

 

I am sure someone must have done.....help please

 

Helaman

Link to comment
Share on other sites

In /includes/configure.php add:

 

 ?define('DIR_WS_DIRECTORY', 'my_directory/');

 

Then link to your file like this:

 

 

 ? ?<td valign="top"><?php echo '<a href="' . tep_href_link(DIR_WS_DIRECTORY . 'my_file.php') . '">My Link</a>'; ?></td> ?

 

Matti

Link to comment
Share on other sites

In /includes/configure.php add:

 

 ?define('DIR_WS_DIRECTORY', 'my_directory/');

 

Then link to your file like this:

 ? ?<td valign="top"><?php echo '<a href="' . tep_href_link(DIR_WS_DIRECTORY . 'my_file.php') . '">My Link</a>'; ?></td> ?

 

Matti

 

 

I am just crazy enough to try that

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...