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