File: htdocs/class/smarty/xoops_plugins/function.securityToken.php

Recommend this page to a friend!
  Classes of Michael Beck  >  Xoops 2.5  >  htdocs/class/smarty/xoops_plugins/function.securityToken.php  >  Download  
File: htdocs/class/smarty/xoops_plugins/function.securityToken.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 3 years ago
Size: 648 bytes
 

 

Contents

Class file image Download
<?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 <richard@geekwright.com>
 */

/**
 * 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)
{
    echo
$GLOBALS['xoopsSecurity']->getTokenHTML();
}


For more information send a message to info at phpclasses dot org.