-
Notifications
You must be signed in to change notification settings - Fork 1
/
admin.php
33 lines (25 loc) · 893 Bytes
/
admin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
defined('INSTAG_PATH') or die('Hacking attempt!');
global $template, $page, $conf;
load_language('plugin.lang', INSTAG_PATH);
if (!file_exists(INSTAG_FS_CACHE))
{
mkdir(INSTAG_FS_CACHE, 0755);
}
// tabsheet
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'import';
$tabsheet = new tabsheet();
$tabsheet->add('import', l10n('Import'), INSTAG_ADMIN . '-import');
$tabsheet->add('config', l10n('Configuration'), INSTAG_ADMIN . '-config');
$tabsheet->select($page['tab']);
$tabsheet->assign();
// include page
include(INSTAG_PATH . 'admin/' . $page['tab'] . '.php');
// template
$template->assign(array(
'INSTAG_PATH'=> INSTAG_PATH,
'INSTAG_ABS_PATH'=> dirname(__FILE__).'/',
'INSTAG_ADMIN' => INSTAG_ADMIN,
));
$template->assign_var_from_handle('ADMIN_CONTENT', 'Instagram2Piwigo');