-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathadmin.php
More file actions
29 lines (23 loc) · 795 Bytes
/
admin.php
File metadata and controls
29 lines (23 loc) · 795 Bytes
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
<?php
defined('SMART_PATH') or die('Hacking attempt!');
global $conf, $template, $page;
$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'cat_list';
if ($page['tab'] == 'album')
{
include(SMART_PATH . 'admin/album.php');
}
else
{
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
$tabsheet = new tabsheet();
$tabsheet->add('cat_list', l10n('All SmartAlbums'), SMART_ADMIN.'-cat_list');
$tabsheet->add('config', l10n('Configuration'), SMART_ADMIN.'-config');
$tabsheet->select($page['tab']);
$tabsheet->assign();
include(SMART_PATH . 'admin/'.$page['tab'].'.php');
}
$template->assign(array(
'SMART_PATH' => SMART_PATH,
'SMART_ABS_PATH' => realpath(SMART_PATH) . '/',
));
$template->assign_var_from_handle('ADMIN_CONTENT', 'SmartAlbums_content');