Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs for page function.securityutil_generateauthkey.php

Procedural File: function.securityutil_generateauthkey.php

Source Location: /pnRender/plugins/function.securityutil_generateauthkey.php

Classes:



Page Details:

Zikula Application Framework



Tags:

version:  $Id: function.securityutil_generateauthkey.php 24383 2008-06-12 14:15:02Z markwest $
copyright:  (c) 2004, Zikula Development Team
link:  http://www.zikula.org
license:  GNU/GPL








smarty_function_securityutil_generateauthkey [line 42]

string smarty_function_securityutil_generateauthkey( 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="<!--[securityutil_generateauthkey 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 ]


Packages:

Files:

Classes: