load_filter('output', 'trimwhitespace'); $Smarty->load_filter('post', 'template_marker'); $Smarty->load_filter('output', 'localizer'); ## some basic things ################################################ $Smarty->assign('UI_BROWSER', UI_BROWSER); $Smarty->assign('UI_HANDLER', UI_HANDLER); $Smarty->assign('GLOBALS', array( 'id' => &$uiBrowser->id, 'pid' => &$uiBrowser->pid, 'fid' => &$uiBrowser->fid ) ); $Smarty->assign('user', array('sessid' => &$uiBrowser->sessid, 'userid' => &$uiBrowser->userid, 'login' => &$uiBrowser->login ) ); ## retransfer incomplete formdata from SESSION to POST-data ######### if (is_array($_SESSION['retransferFormData'])){ foreach($_SESSION['retransferFormData'] as $k=>$v){ $_POST[$k] = $v; } unset($_SESSION['retransferFormData']); } ?>