source: extensions/GuestBook/admin.php @ 16347

Last change on this file since 16347 was 16347, checked in by mistic100, 12 years ago

replace all CRLF by LF

File size: 760 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');
26
27
28?>
Note: See TracBrowser for help on using the repository browser.