Menu
I have if certain ip is viewing site to display this code, this is used for internal intranet. But I want something like this, instead of using an ip, how can I say, if NT User name is JDoe, then echo the code, else, nothing. Is that possible?
<?php
$ip=$_SERVER[‘REMOTE_ADDR’];
if(eregi(“192(.*)”, $ip))
{
echo “Hello Admin”;
}
else {
}
?>