Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Down for Maintenance more than 1 IP for webmaster


jubii

Recommended Posts

Hey Everybody

 

I have just downloaded the http://www.oscommerce.com/community/contributions,1057 and it works perfect.

 

But is it possible to have more than one IP, (exclude this IP-Address) so that the webmaster and eg. my designer who is on another IP range will be able to see the shop when it is down for maintenace.

----------------------------------

 

Regards Jubii

Link to comment
Share on other sites

Quick and dirty solution.

 

 

Find in application_top.php:

if (EXCLUDE_ADMIN_IP_FOR_MAINTENANCE != getenv('REMOTE_ADDR')){

change to:

if (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE,getenv('REMOTE_ADDR'))){

 

From now on you can enter several IPs in "Down For Maintenance (exclude this IP-Address)" field, separate them with spaces.

There is always more than one way to do it.

And always Keep It Simple, Stupid.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...