BAN Class Reference

List of all members.

Public Member Functions

 isBanned ($blogid, $ip)
 addBan ($blogid, $iprange, $reason)
 removeBan ($blogid, $iprange)


Detailed Description

PHP class responsible for ban-management.

http://nucleuscms.org/license.txt GNU General Public License Copyright (C) 2002-2007 The Nucleus Group

Version:
Id
BAN.php 1116 2007-02-03 08:24:29Z kimitake
NucleusJP
BAN.php,v 1.7 2007/02/04 06:28:46 kimitake Exp

Definition at line 21 of file BAN.php.


Member Function Documentation

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().


The documentation for this class was generated from the following file:



Generated on Wed Jun 25 17:26:02 2008 by  doxygen 1.5.5