Line | |
---|
1 | <?php |
---|
2 | defined('PICASA_WA_PATH') or die('Hacking attempt!'); |
---|
3 | |
---|
4 | global $template, $page, $conf; |
---|
5 | |
---|
6 | load_language('plugin.lang', PICASA_WA_PATH); |
---|
7 | $conf['google2piwigo'] = safe_unserialize($conf['google2piwigo']); |
---|
8 | |
---|
9 | if (!file_exists(PICASA_WA_CACHE)) |
---|
10 | { |
---|
11 | mkdir(PICASA_WA_CACHE, 0755); |
---|
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'), PICASA_WA_ADMIN . '-import'); |
---|
20 | $tabsheet->add('config', l10n('Configuration'), PICASA_WA_ADMIN . '-config'); |
---|
21 | $tabsheet->select($page['tab']); |
---|
22 | $tabsheet->assign(); |
---|
23 | |
---|
24 | // include page |
---|
25 | include(PICASA_WA_PATH . 'admin/' . $page['tab'] . '.php'); |
---|
26 | |
---|
27 | // template |
---|
28 | $template->assign(array( |
---|
29 | 'PICASA_WA_PATH'=> PICASA_WA_PATH, |
---|
30 | 'PICASA_WA_ABS_PATH'=> dirname(__FILE__).'/', |
---|
31 | 'PICASA_WA_ADMIN' => PICASA_WA_ADMIN, |
---|
32 | )); |
---|
33 | |
---|
34 | $template->assign_var_from_handle('ADMIN_CONTENT', 'picasa_web_albums'); |
---|
Note: See
TracBrowser
for help on using the repository browser.