source: extensions/Subscribe_to_comments/admin.php @ 21680

Last change on this file since 21680 was 21608, checked in by mistic100, 11 years ago

code clean, add admin list of all subscribers

File size: 818 bytes
Line 
1<?php
2if (!defined('SUBSCRIBE_TO_PATH')) die('Hacking attempt!');
3
4global $template, $page, $conf;
5
6
7// tabsheet
8include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
9$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'subscriptions';
10 
11$tabsheet = new tabsheet();
12$tabsheet->add('subscriptions', l10n('Manage'), SUBSCRIBE_TO_ADMIN . '-subscriptions');
13$tabsheet->add('config', l10n('Configuration'), SUBSCRIBE_TO_ADMIN . '-config');
14$tabsheet->select($page['tab']);
15$tabsheet->assign();
16
17
18// include page
19include(SUBSCRIBE_TO_PATH . 'admin/' . $page['tab'] . '.php');
20
21// template
22$template->assign(array(
23  'SUBSCRIBE_TO_PATH' => SUBSCRIBE_TO_PATH,
24  'SUBSCRIBE_TO_ADMIN' => SUBSCRIBE_TO_ADMIN,
25  ));
26 
27$template->assign_var_from_handle('ADMIN_CONTENT', 'stc_admin');
28
29?>
Note: See TracBrowser for help on using the repository browser.