Added option to allow developers to include there own header and footer

This commit is contained in:
jengo 2001-05-23 05:00:13 +00:00
parent d915c33f18
commit f87e15da72

View File

@ -9,14 +9,24 @@
* Free Software Foundation; either version 2 of the License, or (at your * * Free Software Foundation; either version 2 of the License, or (at your *
* option) any later version. * * option) any later version. *
\***************************************************************************/ \***************************************************************************/
/* $Id$ */ /* $Id$ */
$phpgw_flags = array('currentapp' => $cats_app, $phpgw_info['flags'] = array(
'enable_nextmatchs_class' => True, 'currentapp' => $cats_app,
'noappheader' => True, 'enable_nextmatchs_class' => True
'noappfooter' => True); );
if (! $appheader)
{
$phpgw_info['flags']['noappheader'] = True;
}
if (! $appfooter)
{
$phpgw_info['flags']['noappfooter'] = True;
}
$phpgw_info['flags'] = $phpgw_flags;
include('../header.inc.php'); include('../header.inc.php');
$t = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('preferences')); $t = CreateObject('phpgwapi.Template',$phpgw->common->get_tpl_dir('preferences'));