<?php
$ip = $_SERVER['REMOTE_ADDR'];
$bestand = "ipblock.tx t";
$iparray = file("ipblock.t xt");
$ans = array_search($i p, $iparray);
if ($ans == $ip) {
print(" ");
print("<div align='center'> <font face='Geneva, Arial, Helvetica,
sans-serif'><strong> Your ip [$ip] has
been suspended as a result of your actions on this
website</strong></font></div>");
print ("<div align='center'> <font face='Geneva, Arial, Helvetica,
sans-serif'><strong>--------------------------------------------------------
-</strong></font></div>");
}
else {
$db = mysql_connect(" localhost","use r","password ");
....etc
Why does this not work?? And in which format must i add ip adresses into the
file??
FiremanSAM
$ip = $_SERVER['REMOTE_ADDR'];
$bestand = "ipblock.tx t";
$iparray = file("ipblock.t xt");
$ans = array_search($i p, $iparray);
if ($ans == $ip) {
print(" ");
print("<div align='center'> <font face='Geneva, Arial, Helvetica,
sans-serif'><strong> Your ip [$ip] has
been suspended as a result of your actions on this
website</strong></font></div>");
print ("<div align='center'> <font face='Geneva, Arial, Helvetica,
sans-serif'><strong>--------------------------------------------------------
-</strong></font></div>");
}
else {
$db = mysql_connect(" localhost","use r","password ");
....etc
Why does this not work?? And in which format must i add ip adresses into the
file??
FiremanSAM
Comment