PDA

View Full Version : A little php script I wrote


Nav
23-02-2005, 13:56:22
if (strpos($_SERVER['HTTP_REFERER'],'brawl-hall.com')) {
$result=$DB_site->query_first("SELECT value FROM setting WHERE settingid=***");
if (strpos($result['value'], $_SERVER['REMOTE_ADDR'])) {
$message = "This address is already in the IP Block List";
} else {
$result['value'].=' '.$_SERVER['REMOTE_ADDR'];
$DB_site->query("UPDATE setting SET value='".$result['value']."' WHERE settingid=***");
$message = "This address has been added to the IP Block List";
}
}


Worked better than expected. :lol:

Funkodrom
23-02-2005, 13:57:58
:lol:

So miester g linked back to CG from brawl-hall and it banned him?

zmama
23-02-2005, 13:58:14
:lol:

byebye mrg

Nav
23-02-2005, 14:00:09
yep. :D

Funkodrom
23-02-2005, 14:03:41
Have you taken the script out now?

Nav
23-02-2005, 14:05:34
yes, it still logs but isn't auto-blocking.

Gary
23-02-2005, 14:09:25
Brilliant :D

miester gandertak
23-02-2005, 14:15:32
:lol: :lol: :lol: :lol: :lol: :lol:
that will teach him

HelloKitty
23-02-2005, 15:24:47
Can you do the same thing with apolyton?

Drekkus
23-02-2005, 17:11:48
:lol: You djenius, nav.

MDA
23-02-2005, 17:13:12
:lol:

Here's a little script I wrote,
you might want to sell that fucking goat,
Don't worry,
Be happy!

Qaj the Fuzzy Love Worm
23-02-2005, 19:15:51
Bastard. Now I've gone and got that song stuck in my head.