add('gest', l10n('pft_tab_gest'), PFT_ADMIN . '-gest'); $tabsheet->add('help', l10n('pft_tab_help'), PFT_ADMIN . '-help'); $tabsheet->select($page['tab']); $tabsheet->assign(); // tab gest switch ($page['tab']){ case 'gest': global $pwg_loaded_plugins; $template->assign('gestA',array('PFTBASE' => $conf['persoFooter'],)); if (isset($pwg_loaded_plugins['ExtendedDescription'])){ $template->assign('useED',1); }else{ $template->assign('useED',0); } if (isset($_POST['submitpft'])){ conf_update_param('persoFooter', $_POST['perso_footer']); $template->assign( 'gestA', array('PFTBASE' => stripslashes($_POST['perso_footer']),)); $_SESSION['page_infos'] = array(l10n('Configuration update')); } break; case 'help': $template->assign( 'gestB', array('meta'=>l10n('nul'),)); break; } $template->set_filenames(array('plugin_admin_content' => dirname(__FILE__) . '/admin.tpl')); $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content'); } ?>