Class Security
XOOPS security handler
Direct known subclasses
XoopsSecurity
Namespace: Xoops\Core
Package: Security
Category: Xoops\Core
Copyright: 2014-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Richard Griffith richard@geekwright.com
Version: Release: 1.0
Since: 2.0.0
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Security.php
Package: Security
Category: Xoops\Core
Copyright: 2014-2015 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Richard Griffith richard@geekwright.com
Version: Release: 1.0
Since: 2.0.0
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Security.php
public
boolean
|
|
public
string
|
#
createToken( integer $timeout = 300, string $name = 'XOOPS_TOKEN' )
Create a token in the user's session |
public
boolean
|
#
validateToken( string|boolean $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
|
#
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 Xoops\Form\Token object - provides a hidden token field used in forms that do not use Xoops\Form elements |
public
|
|
public
array|string
|