-
Notifications
You must be signed in to change notification settings - Fork 2
/
admin.php
32 lines (25 loc) · 982 Bytes
/
admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
defined('HEADER_MANAGER_PATH') or die('Hacking attempt!');
global $template, $page;
load_language('plugin.lang', HEADER_MANAGER_PATH);
$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'config';
if ($page['tab'] != 'album')
{
// tabsheet
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
$tabsheet = new tabsheet();
$tabsheet->set_id('header_manager');
$tabsheet->add('config', l10n('Configuration'), HEADER_MANAGER_ADMIN . '-config');
$tabsheet->add('add', l10n('Add a banner'), HEADER_MANAGER_ADMIN . '-add');
$tabsheet->select($page['tab']);
$tabsheet->assign();
}
// template
$template->assign(array(
'CONFIG_URL' => HEADER_MANAGER_ADMIN . '-config',
'ADD_IMAGE_URL' => HEADER_MANAGER_ADMIN . '-add',
));
// include page
include(HEADER_MANAGER_PATH . 'admin/' . $page['tab'] . '.php');
$template->assign('HEADER_MANAGER_PATH', HEADER_MANAGER_PATH);
$template->assign_var_from_handle('ADMIN_CONTENT', 'header_manager');