Thursday 12 January 2006 12:29:39 am
I'd like to have two versions of navigation menu (both are in header section)
1. Complete one - visible only from one static IP adress 2. Without one menu position - for the rest IPs I tried to modify existing pagelayout.tpl in order to make visible menu by insertion of similar code, given below (copmarison of IP adress and then generate apropriate page version)
$adress="172.30.34.123";
//------
$ip = gethostbyname("$REMOTE_ADDR");
$OK=false;
$OK=(strncmp($adress,$ip,strlen($adress))==0);
etc.etc. But it seems not to be good idea, cause it doesn't work corretly Could you advise how to do it?
|