source: extensions/GuestBook/admin.php @ 24889

Last change on this file since 24889 was 24889, checked in by mistic100, 10 years ago

use my plugin architecture, add options to hide the page for guests, fix admin links in mails

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