for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* XOOPS securityToken Smarty compiler plug-in
*
* @copyright XOOPS Project (http://xoops.org)
* @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
* @author Richard Griffith <[email protected]>
*/
* Inserts a XOOPS security token
* Not sure if this is a good idea (sounds like application logic, not presentation,)
* but there are several token generations done in {php} tags which don't work with
* Smarty 3.1
* @param $params
* @param $smarty
* @return null
function smarty_function_securityToken($params, &$smarty)
$params
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
$smarty
{
echo $GLOBALS['xoopsSecurity']->getTokenHTML();
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.