source: extensions/instagram2piwigo/admin.php @ 20476

Last change on this file since 20476 was 19561, checked in by mistic100, 12 years ago

first commit

File size: 966 bytes
Line 
1<?php
2if (!defined('INSTAG_PATH')) die('Hacking attempt!');
3
4global $template, $page, $conf;
5
6$conf['Instagram2Piwigo'] = unserialize($conf['Instagram2Piwigo']);
7load_language('plugin.lang', INSTAG_PATH);
8
9if (!file_exists(INSTAG_FS_CACHE))
10{
11  mkdir(INSTAG_FS_CACHE, 0755);
12}
13
14// tabsheet
15include_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'), INSTAG_ADMIN . '-import');
20$tabsheet->add('config', l10n('Configuration'), INSTAG_ADMIN . '-config');
21$tabsheet->select($page['tab']);
22$tabsheet->assign();
23
24// include page
25include(INSTAG_PATH . 'admin/' . $page['tab'] . '.php');
26
27// template
28$template->assign(array(
29  'INSTAG_PATH'=> INSTAG_PATH,
30  'INSTAG_ABS_PATH'=> dirname(__FILE__).'/',
31  'INSTAG_ADMIN' => INSTAG_ADMIN,
32  ));
33$template->assign_var_from_handle('ADMIN_CONTENT', 'Instagram2Piwigo');
34
35?>
Note: See TracBrowser for help on using the repository browser.