Line | |
---|
1 | <?php |
---|
2 | defined('FLICKR_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $template, $page, $conf; |
---|
5 | |
---|
6 | load_language('plugin.lang', FLICKR_PATH); |
---|
7 | |
---|
8 | if (!file_exists(FLICKR_FS_CACHE)) |
---|
9 | { |
---|
10 | mkdir(FLICKR_FS_CACHE, 0755); |
---|
11 | } |
---|
12 | |
---|
13 | // tabsheet |
---|
14 | include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php'); |
---|
15 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'import'; |
---|
16 | |
---|
17 | $tabsheet = new tabsheet(); |
---|
18 | $tabsheet->add('import', l10n('Import'), FLICKR_ADMIN . '-import'); |
---|
19 | $tabsheet->add('config', l10n('Configuration'), FLICKR_ADMIN . '-config'); |
---|
20 | $tabsheet->select($page['tab']); |
---|
21 | $tabsheet->assign(); |
---|
22 | |
---|
23 | // include page |
---|
24 | include(FLICKR_PATH . 'admin/' . $page['tab'] . '.php'); |
---|
25 | |
---|
26 | // template |
---|
27 | $template->assign(array( |
---|
28 | 'FLICKR_PATH'=> FLICKR_PATH, |
---|
29 | 'FLICKR_ABS_PATH'=> dirname(__FILE__).'/', |
---|
30 | 'FLICKR_ADMIN' => FLICKR_ADMIN, |
---|
31 | )); |
---|
32 | |
---|
33 | $template->assign_var_from_handle('ADMIN_CONTENT', 'flickr2piwigo'); |
---|
Note: See
TracBrowser
for help on using the repository browser.