assign("POPUPTYPE",$_REQUEST['popuptype']); $log->debug("using file modules/Users/Popup_picker.html"); } else { $form =new XTemplate ('modules/Users/'.$_REQUEST['html'].'.html'); $log->debug("using file modules/Users/".$_REQUEST['html'].'.html'); $log->debug("_REQUEST['html'] is ".$_REQUEST['html']); } $form->assign("MOD", $mod_strings); $form->assign("APP", $app_strings); // the form key is required if(!isset($_REQUEST['form'])) die("Missing 'form' parameter"); // This code should always return an answer. // The form name should be made into a parameter and not be hard coded in this file. if(isset($_REQUEST['form_submit']) && $_REQUEST['popuptype'] == 'detailview' && $_REQUEST['form_submit'] == 'true') { $the_javascript = "\n"; } elseif ($_REQUEST['form'] == 'UsersEditView') { $the_javascript = "\n"; } else // ($_REQUEST['form'] == 'EditView') { $the_javascript = "\n"; } $form->assign("SET_RETURN_JS", $the_javascript); $form->assign("THEME", $theme); $form->assign("IMAGE_PATH", $image_path); $form->assign("MODULE_NAME", $currentModule); $form->assign("FORM_SUBMIT", $_REQUEST['form_submit']); $form->assign("FORM", $_REQUEST['form']); insert_popup_header($theme); // Quick search. echo "