source: extensions/GuestBook/admin.php @ 20221

Revision 16347, 760 bytes checked in by mistic100, 8 years ago (diff)

replace all CRLF by LF

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.