replace $ip[0] with $cut[0] etc, etc, etc.... or reverse the top two lines:
/** THIS **/
$ip = $_SERVER['REMOTE_ADDR'];
$cut = explode(".", $ip);
If( $cut[0] . '.' . $cut[1] . '.' . $cut[2] == '62.1.196') {
header("Location: http://cs-stas.megabyte.gr/enalio/index.php");
exit;
}
If( $cut[0] . '.' . $cut[1] . '.' . $cut[2] == '62.1.197') {
header("Location: http://cs-stas.megabyte.gr/index.php");
exit;
}
/** OR DO THIS: **/
<?php
$cut = $_SERVER['REMOTE_ADDR'];
$ip = explode(".", $ip);
If( $ip[0] . '.' . $ip[1] . '.' . $ip[2] == '62.1.196') {
header("Location: http://cs-stas.megabyte.gr/enalio/index.php");
exit;
}
If( $ip[0] . '.' . $ip[1] . '.' . $ip[2] == '62.1.197') {
header("Location: http://cs-stas.megabyte.gr/index.php");
exit;
}
?>
Make sense?
This wasn't your fault... Oni's original code was like this as well, and I didn't catch it at first.