Changeset 11249 for extensions/set_plugins/admin.php
- Timestamp:
- Jun 6, 2011, 2:08:27 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/set_plugins/admin.php
r11102 r11249 5 5 // Fetch the template. 6 6 global $template; 7 $redirect_url = get_root_url().'admin.php?page='.'plugins_list'; 7 // 8 9 if (PHPWG_VERSION < 2.3 ) 10 $redirect_url = get_root_url().'admin.php?page='.'plugins_list'; 11 else 12 $redirect_url = get_root_url().'admin.php?page='.'plugins'; 8 13 redirect($redirect_url); 9 include_once(SET_PLUGINS_PATH."include/constants.php");10 include_once(SET_PLUGINS_PATH.'include/affiche.php');11 14 12 13 include_once(PHPWG_ROOT_PATH.'admin/include/functions.php');14 include_once (PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');15 $my_base_url = get_admin_plugin_menu_link(__FILE__);16 17 $tabsheet = new tabsheet();18 $tabsheet->add( 'set_plugins_admin',19 l10n('admin'),20 $my_base_url.'&tab=set_plugins_admin'21 );22 /*23 $tabsheet->add( 'set_plugins_help',24 l10n('help'),25 $my_base_url.'&tab=set_plugins_help'26 );27 28 */29 30 if (!isset($_GET['tab']))31 $page['tab'] = 'set_plugins_admin';32 else33 $page['tab'] = $_GET['tab'];34 35 36 $tabsheet->select($page['tab']);37 $tabsheet->assign();38 //======================================================================39 // Add our template to the global template40 $template->set_filenames(41 array(42 'plugin' => dirname(__FILE__).'/admin.tpl'43 )44 );45 46 //===============================================================================47 if(isset($activate)){48 $template->assign( array(49 'U_ACTION' => $activate50 )51 );52 53 }54 55 $page['tab'] = 'plugins_list';56 57 // "admin.php?page=plugins_list"58 59 60 // Assign the template contents to ADMIN_CONTENT61 $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin');62 15 63 16
Note: See TracChangeset
for help on using the changeset viewer.