我使用此代碼對每邊告訴遊客,該店是不是生產一個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