Line | |
---|
1 | <?php |
---|
2 | defined('PHPWG_ROOT_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
5 | |
---|
6 | load_language('plugin.lang', PHPWG_PLUGINS_PATH.RVAC_ID.'/'); |
---|
7 | |
---|
8 | if (!isset($_GET['tab'])) |
---|
9 | $page['tab'] = 'config'; |
---|
10 | else |
---|
11 | $page['tab'] = $_GET['tab']; |
---|
12 | |
---|
13 | $my_base_url = 'admin.php?page=plugin-'.basename(dirname(__FILE__)); |
---|
14 | |
---|
15 | $tabsheet = new tabsheet(); |
---|
16 | $tabsheet->add( 'config', l10n('Configuration'), $my_base_url.'-config'); |
---|
17 | $tabsheet->add( 'exclude', l10n('Exclude'), $my_base_url.'-exclude' ); |
---|
18 | $tabsheet->add( 'custom', l10n('Custom'), $my_base_url.'-custom' ); |
---|
19 | $tabsheet->select($page['tab']); |
---|
20 | |
---|
21 | $tabsheet->assign(); |
---|
22 | |
---|
23 | $my_base_url = $tabsheet->sheets[ $page['tab'] ]['url']; |
---|
24 | |
---|
25 | include_once( dirname(__FILE__).'/functions.inc.php'); |
---|
26 | include_once( dirname(__FILE__).'/admin/functions.inc.php'); |
---|
27 | include_once( dirname(__FILE__).'/admin/'.$page['tab'].'.php'); |
---|
28 | |
---|
29 | $template->set_filename( 'rv_ac', dirname(__FILE__).'/admin/'.$page['tab'].'.tpl' ); |
---|
30 | $template->assign_var_from_handle( 'ADMIN_CONTENT', 'rv_ac'); |
---|
31 | |
---|
32 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.