[ Index ]

PHP Cross Reference of Nucleus CMS 3.32

title

Body

[close]

/nucleus/libs/ -> BAN.php (summary)

(no description)

File Size: 106 lines (3 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 2 classes

BAN:: (3 methods):
  isBanned()
  addBan()
  removeBan()

BANINFO:: (1 method):
  BANINFO()


Class: BAN  - X-Ref

PHP class responsible for ban-management.

isBanned($blogid, $ip)   X-Ref
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

addBan($blogid, $iprange, $reason)   X-Ref
Adds a new ban to the banlist. Returns 1 on success, 0 on error


removeBan($blogid, $iprange)   X-Ref
Removes a ban from the banlist (correct iprange is needed as argument)
Returns 1 on success, 0 on error


Class: BANINFO  - X-Ref

BANINFO($iprange, $message)   X-Ref
No description



Generated: Tue Feb 12 15:34:36 2008 Cross-referenced by PHPXref 0.7