Changeset 9738
- Timestamp:
- Mar 17, 2011, 12:51:38 AM (14 years ago)
- Location:
- extensions/PWG_Stuffs/trunk
- Files:
-
- 5 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
extensions/PWG_Stuffs/trunk/admin.php
r9736 r9738 8 8 include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); 9 9 include_once(STUFFS_PATH . 'functions.inc.php'); 10 $my_base_url = get_ admin_plugin_menu_link(__FILE__);10 $my_base_url = get_root_url().'admin.php?page=plugin-'.STUFFS_DIR; 11 11 12 12 // +-----------------------------------------------------------------------+ … … 16 16 17 17 $tabsheet = new tabsheet(); 18 $tabsheet->add('manage', l10n('stuffs_mods_management'), $my_base_url.' &tab=manage');18 $tabsheet->add('manage', l10n('stuffs_mods_management'), $my_base_url.'-manage'); 19 19 if ($page['tab'] == 'add_module') 20 20 { 21 $tabsheet->add('add_module', l10n('stuffs_add_mod'), $my_base_url.' &tab=add_module&path='.$_GET['path']);21 $tabsheet->add('add_module', l10n('stuffs_add_mod'), $my_base_url.'-add_module&path='.$_GET['path']); 22 22 } 23 23 else 24 24 { 25 $tabsheet->add('new', l10n('stuffs_add_mod'), $my_base_url.' &tab=new');25 $tabsheet->add('new', l10n('stuffs_add_mod'), $my_base_url.'-new'); 26 26 } 27 27 if ($page['tab'] == 'edit_module') 28 28 { 29 $tabsheet->add('edit_module', l10n('stuffs_edit_mod'), $my_base_url.' &tab=edit_module&edit='.$_GET['edit']);29 $tabsheet->add('edit_module', l10n('stuffs_edit_mod'), $my_base_url.'-edit_module&edit='.$_GET['edit']); 30 30 } 31 $tabsheet->add('config', l10n('Configuration'), $my_base_url.' &tab=config');31 $tabsheet->add('config', l10n('Configuration'), $my_base_url.'-config'); 32 32 $tabsheet->select($page['tab']); 33 33 $tabsheet->assign(); -
extensions/PWG_Stuffs/trunk/admin/add_module.inc.php
r9737 r9738 93 93 pwg_query($query); 94 94 } 95 redirect( PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . STUFFS_DIR . '%2Fadmin%2Fadmin.php');95 redirect($my_base_url); 96 96 } 97 97 } -
extensions/PWG_Stuffs/trunk/admin/manage.inc.php
r9737 r9738 9 9 { 10 10 pwg_query('DELETE FROM ' . STUFFS_TABLE . ' WHERE id = ' . $_GET['del'] . ' LIMIT 1;'); 11 redirect( PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . STUFFS_DIR . '%2Fadmin%2Fadmin.php');11 redirect($my_base_url); 12 12 } 13 13 … … 85 85 'WIDTH' => $module['width'], 86 86 'ID' => $module['id'], 87 'U_EDIT' => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . STUFFS_DIR . '%2Fadmin%2Fadmin.php&tab=edit_module&edit='.$module['id'],88 'U_DELETE' => PHPWG_ROOT_PATH . 'admin.php?page=plugin&section=' . STUFFS_DIR . '%2Fadmin%2Fadmin.php&del=' . $module['id'],87 'U_EDIT' => $my_base_url.'-edit_module&edit='.$module['id'], 88 'U_DELETE' => $my_base_url.'&del=' . $module['id'], 89 89 'MISSING' => $missing_message, 90 90 ) -
extensions/PWG_Stuffs/trunk/admin/new.inc.php
r9737 r9738 12 12 else 13 13 { 14 redirect( PHPWG_ROOT_PATH.'admin.php?page=plugin§ion=' . STUFFS_DIR . '%2Fadmin%2Fadmin.php&tab=add_module&path=' . urlencode($_POST['module']));14 redirect($my_base_url.'-add_module&path=' . urlencode($_POST['module'])); 15 15 } 16 16 } -
extensions/PWG_Stuffs/trunk/class.inc.php
r9737 r9738 117 117 if (is_admin()) 118 118 { 119 $block['U_EDIT'] = PHPWG_ROOT_PATH.'admin.php?page=plugin&section='.STUFFS_DIR.'%2Fadmin%2Fadmin.php&tab=edit_module&edit='.$module['id'].'&redirect='.urlencode(urlencode($_SERVER['REQUEST_URI']));119 $block['U_EDIT'] = get_root_url().'admin.php?page=plugin-'.STUFFS_DIR.'-edit_module&edit='.$module['id'].'&redirect='.urlencode(urlencode($_SERVER['REQUEST_URI'])); 120 120 } 121 121 $this->set_tpl_block($block, $module); -
extensions/PWG_Stuffs/trunk/main.inc.php
r9736 r9738 29 29 array_push($menu, array( 30 30 'NAME' => 'PWG Stuffs', 31 'URL' => get_ admin_plugin_menu_link(STUFFS_PATH . 'admin/admin.php')31 'URL' => get_root_url().'admin.php?page=plugin-'.STUFFS_DIR 32 32 ) 33 33 );
Note: See TracChangeset
for help on using the changeset viewer.