source: extensions/GuestBook/admin.php @ 30438

Last change on this file since 30438 was 26065, checked in by mistic100, 11 years ago

update for Piwigo 2.6 + code clean

File size: 753 bytes
Line 
1<?php
2defined('GUESTBOOK_PATH') or 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.