Banning IPs by seperate php script

Discussion forum for MOD Writers regarding MOD Development.
User avatar
Registered User
Posts: 21
Joined: Wed Mar 19, 2008 9:29 am

Banning IPs by seperate php script

Post by ivobg92 » Mon Sep 07, 2009 8:14 am


I'm currently trying to do the following: ban ip through submitting it by a separate php file directly to the phpbb _banlist table.

Code: Select all

mysql_query("INSERT INTO phpbb_banlist 
(ban_ip, ban_start, ban_give_reason) VALUES('$ip', '$time', '$ban_reason')") 
or die(mysql_error());
Everything is filled up correctly in the table, but the IP still have access to the forum. Maybe I need to destroy a cache, tried with $cache->destroy('_total_banned_users'); but still doesn't work...


Return to “[3.0.x] MOD Writers Discussion”