Class XoopsSecurity
Class XoopsSecurity
Package: kernel
Copyright: (c) 2000-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Author: Jan Pedersen mithrandir@xoops.org
Author: John Neill catzwolf@xoops.org
Located at lass/xoopssecurity.php
Copyright: (c) 2000-2016 XOOPS Project (www.xoops.org)
License: GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Kazumi Ono onokazu@xoops.org
Author: Jan Pedersen mithrandir@xoops.org
Author: John Neill catzwolf@xoops.org
Located at lass/xoopssecurity.php
public
boolean
|
|
public
string
|
#
createToken( integer|string $timeout = 0, string $name = 'XOOPS_TOKEN' )
Create a token in the user's session |
public
boolean
|
#
validateToken( string|false $token = false, boolean $clearIfValid = true, string $name = 'XOOPS_TOKEN' )
Check if a token is valid. If no token is specified, $_REQUEST[$name . '_REQUEST'] is checked |
public
|
|
public
boolean
|
|
public
|
#
garbageCollection( string $name = 'XOOPS_TOKEN' )
Perform garbage collection, clearing expired tokens |
public
boolean
|
|
public
|
|
public
|
#
checkBadips( )
Check if visitor's IP address is banned Should be changed to return bool and let the action be up to the calling script |
public
string
|
#
getTokenHTML( string $name = 'XOOPS_TOKEN' )
Get the HTML code for a XoopsFormHiddenToken object - used in forms that do not use XoopsForm elements |
public
|
|
public
array|string
&
|
public
array
|
$errors
|
#
array()
|