Magento News

 

how to get the magento developer ip

Hi,

I use this code to have a js popup on each side telling visitors that the shop is not productive:

<?php
$ip = $_SERVER['REMOTE_ADDR'];
if ($ip == 'xxx.xxx.xxx.xxx' OR $ip == 'xxx.xxx.xxx.xx') { ?>
You are a developer
<?php } else { ?>
You are a visitor
<?php } ?>

My Question is, how can I use the developer Ip from the magento backend in this code
->System -> Configuration -> Developer -> Developer Client Restrictions

Best regards
Nico

how to get the magento developer ip

Possibly Related Posts:


 

Leave a Reply