我使用此代码对每边告诉游客,该店是不是生产一个js弹出:如何获得magento开发人员ip?
<?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 } ?>
我的问题是,我该如何使用开发者叶从这个代码 Magento的后端 - >系统 - >配置 - >开发 - >开发客户限制
能否请您澄清你的问题?系统 - >配置 - >开发者 - >开发者客户端限制将限制对指定的IP的访问。我不认为这是你需要的。 – 2011-06-01 09:37:16
我想他想在前端的某处使用'dev/restrict/allow_ips'来为开发人员提供与普通用户不同的输出。 – 2011-06-01 11:08:10