From 86f9c5ce6a0c8772cc6b3b066d0b8be3204e08b3 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 25 Sep 2002 23:19:31 +0000 Subject: [PATCH] forms are send now to /etemplate/process_exec.php, which sets the current_app from $HTTP_POST_VAR['app'] --- etemplate/inc/class.uietemplate.inc.php | 7 ++----- etemplate/process_exec.php | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 etemplate/process_exec.php diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index 779976e314..5822e1e015 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -96,16 +96,13 @@ $GLOBALS['phpgw']->common->phpgw_header(); $id = $this->appsession_id(); - - $GLOBALS['phpgw_info']['etemplate']['loop'] = False; $GLOBALS['phpgw_info']['etemplate']['form_options'] = ''; // might be set in show $html .= $this->html->nextMatchStyles($this->style)."\n\n". // so they get included once $this->html->form($this->include_java_script() . $this->show($this->complete_array_merge($content,$changes),$sel_options,$readonlys,'exec'), - array('etemplate_exec_id' => $id), - '/index.php?menuaction=etemplate.etemplate.process_exec&app='.$GLOBALS['phpgw_info']['flags']['currentapp'], - '','eTemplate',$GLOBALS['phpgw_info']['etemplate']['form_options']); + array('etemplate_exec_id' => $id,'app' => $GLOBALS['phpgw_info']['flags']['currentapp']), + '/etemplate/process_exec.php','','eTemplate',$GLOBALS['phpgw_info']['etemplate']['form_options']); $id = $this->save_appsession($this->as_array(1) + array( 'readonlys' => $readonlys, diff --git a/etemplate/process_exec.php b/etemplate/process_exec.php new file mode 100644 index 0000000000..3820d3d533 --- /dev/null +++ b/etemplate/process_exec.php @@ -0,0 +1,24 @@ + * + * -------------------------------------------- * + * This program is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 2 of the License, or (at your * + * option) any later version. * + \**************************************************************************/ + + /* $Id$ */ + + $GLOBALS['phpgw_info']['flags'] = array( + 'currentapp' => $GLOBALS['HTTP_POST_VARS']['app'], + 'noheader' => True, + 'nonavbar' => True + ); + include('../header.inc.php'); + + ExecMethod('etemplate.etemplate.process_exec'); + + $GLOBALS['phpgw']->common->phpgw_footer();