Rev | Line | |
---|
[15940] | 1 | <?php |
---|
| 2 | if(!defined('GUESTBOOK_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | global $template, $page; |
---|
| 5 | |
---|
| 6 | // tabsheet |
---|
| 7 | include_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 |
---|
| 17 | include(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.