Source for file function.pndebugenvironment.php
Documentation is available at function.pndebugenvironment.php
* Zikula Application Framework
* @copyright (c) 2004, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: function.pnsessionvars.php 19408 2006-07-13 13:20:58Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Template_Plugins
* Smarty function to get all session variables
* This function gets all session vars from the Zikula system assigns the names and
* values to two array. This is being used in pndebug to show them.
* <!--[pndebugenvironment]-->
* @author Frank Schummertz
* @param array $params All attributes passed to this function from the template
* @param object &$smarty Reference to the Smarty object
global $HTTP_SESSION_VARS;
$allvars = $HTTP_SESSION_VARS;
$smarty->assign( '_pnsession_keys', array_keys($allvars) );
$smarty->assign( '_pnsession_vals', array_values($allvars) );
$smarty->assign('_smartyversion', $smarty->_version);
$smarty->assign('_pnrenderversion', $_pnrender['version']);
$smarty->assign('_themeversion', $_theme['version']);
|