I was using one called Humpa Ban. Has anyone made this…cript for postnuke?
It's small but I found it worked great. It allows one to add IPs and/or usernames to a ban list (you can also unban them) and when a banned person visits your site they get a message telling them that they are banned. Those who are banned can not access any areas of your site (all they see is the banned message). The site admin also gets an e-mail every time a banned member/ip visits your site.
Currently I'm too new to postnuke (& PHP in general) to convert this. The structure of the files is like this:
admin
>case
>>case.setban.php
>links
>>links.setban.php
>modules
>>setban.php
images
>admin
>>ban.gif
includes
>data_ban.php
ban.php
You simply put
Code
include_once("ban.php");
data_ban.php is where the banned usernames and IP's are stored. I can send or post the code for setban.php and ban.php if anyone is interested, they are both small files.
Is there currently anything like this for postnuke or is anyone interested in making this one work? It's small so I don't think it would be too much work for someone who is familiar with postnuke. I'm not sure how much of the code is still relevant (ie: global $user, $prefix, $dbi, $user_prefix, $adminmail?) or how to restructure it to work with the admin in postnuke...
Any help or suggestions that you could offer would be great.
Thanks!
