Line | |
---|
1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $conf, $template, $page; |
---|
5 | |
---|
6 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : 'cat_list'; |
---|
7 | |
---|
8 | if ($page['tab'] == 'album') |
---|
9 | { |
---|
10 | include(SMART_PATH . 'admin/album.php'); |
---|
11 | } |
---|
12 | else |
---|
13 | { |
---|
14 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
15 | $tabsheet = new tabsheet(); |
---|
16 | $tabsheet->add('cat_list', l10n('All SmartAlbums'), SMART_ADMIN.'-cat_list'); |
---|
17 | $tabsheet->add('config', l10n('Configuration'), SMART_ADMIN.'-config'); |
---|
18 | $tabsheet->select($page['tab']); |
---|
19 | $tabsheet->assign(); |
---|
20 | |
---|
21 | include(SMART_PATH . 'admin/'.$page['tab'].'.php'); |
---|
22 | } |
---|
23 | |
---|
24 | $template->assign('SMART_PATH', SMART_PATH); |
---|
25 | |
---|
26 | $template->assign_var_from_handle('ADMIN_CONTENT', 'SmartAlbums_content'); |
---|
27 | |
---|
28 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.