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