Zikula_Template_Plugins
[ class tree: Zikula_Template_Plugins ] [ index: Zikula_Template_Plugins ] [ all elements ]

Procedural File: function.pnsecgenauthkey.php

Source Location: /system/pnRender/plugins/function.pnsecgenauthkey.php



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.pnsecgenauthkey.php 24342 2008-06-06 12:03:14Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
filesource:  Source Code for this file
license:  GNU/GPL








smarty_function_pnsecgenauthkey [line 42]

string smarty_function_pnsecgenauthkey( array $params, object &$smarty)

Smarty function to generate a unique key to secure forms content as unique.

As the MGD states, all operations protected by pnSecAuthAction(). Ih the form, you generate a hidden field with the authid in your form, and check the authid in the submission. T.this way you can be sure that the data was given in your form (and not given by any POST/GET data from outside)

Note that you must not cache the outputs from this function, as its results change aech time it is called. The Zikula developers are looking for ways to automise this.

Available parameters:

  • module: The well-known name of a module to execute a function from (required)
  • assign: If set, the results are assigned to the corresponding variable instead of printed out
Example <input type="hidden" name="authid" value="<!--[pnsecgenauthkey module="MyModule"]-->">




Tags:

return:  the authentication key
author:  Mark West
deprecated:  
todo:  prevent this function from being cached (Smarty 2.6.0)
since:  08/08/2003


Parameters

array   $params   All attributes passed to this function from the template
object   &$smarty   Reference to the Smarty object
[ Top ]



Documentation generated on Fri, 18 Jul 2008 21:46:09 +0200 by phpDocumentor 1.4.1