source: extensions/Subscribe_to_comments/admin.php @ 25997

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

code clean, add admin list of all subscribers

File size: 818 bytes
RevLine 
[15641]1<?php
[21608]2if (!defined('SUBSCRIBE_TO_PATH')) die('Hacking attempt!');
[15641]3
[21608]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';
[15641]10 
[21608]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();
[15641]16
17
[21608]18// include page
19include(SUBSCRIBE_TO_PATH . 'admin/' . $page['tab'] . '.php');
20
21// template
[15641]22$template->assign(array(
23  'SUBSCRIBE_TO_PATH' => SUBSCRIBE_TO_PATH,
[21608]24  'SUBSCRIBE_TO_ADMIN' => SUBSCRIBE_TO_ADMIN,
[15641]25  ));
[21608]26 
27$template->assign_var_from_handle('ADMIN_CONTENT', 'stc_admin');
[15641]28
29?>
Note: See TracBrowser for help on using the repository browser.