Procedural File: function.pnsecgenauthkey.php
Source Location: /pnRender/plugins/function.pnsecgenauthkey.phpClasses:
Page Details:
Zikula Application FrameworkTags:
smarty_function_pnsecgenauthkey [line 42]
|
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
Tags:
Parameters
| array | $params | All attributes passed to this function from the template |
| object | &$smarty | Reference to the Smarty object |
