I like it! Nice and simple.
One thing I would change...I would think it to be more efficient:
if($ipaddress=="xxx.xxx.xxx") {
}
if($ipaddress=="xxx.xxx.xxx") {
}
I personally would change those to elseif statements. Such as...
if ($ipaddress == "xxx.xxx.xxx") {
} elseif ($ipaddress == "xxx.xxx.xxx") {
} else {
}
It doesn't make much of a difference, I belive, but I like seeing it all through one statement.
All in all, I like the tutorial :)