Public Member Functions | |
| isBanned ($blogid, $ip) | |
| addBan ($blogid, $iprange, $reason) | |
| removeBan ($blogid, $iprange) | |
http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group
Definition at line 21 of file BAN.php.
| BAN::isBanned | ( | $ | blogid, | |
| $ | ip | |||
| ) |
Checks if a given IP is banned from commenting/voting
Returns 0 when not banned, or a BANINFO object containing the message and other information of the ban
Definition at line 29 of file BAN.php.
References $blogid, $query, mysql_fetch_object(), and sql_query().
Referenced by ACTION::checkban().
| BAN::addBan | ( | $ | blogid, | |
| $ | iprange, | |||
| $ | reason | |||
| ) |
Adds a new ban to the banlist. Returns 1 on success, 0 on error
Definition at line 45 of file BAN.php.
References $blogid, $manager, $query, and sql_query().
Referenced by ADMIN::action_banlistadd().
| BAN::removeBan | ( | $ | blogid, | |
| $ | iprange | |||
| ) |
Removes a ban from the banlist (correct iprange is needed as argument) Returns 1 on success, 0 on error
Definition at line 79 of file BAN.php.
References $blogid, $manager, $query, mysql_affected_rows(), and sql_query().
Referenced by ADMIN::action_banlistdeleteconfirm().
1.5.5