-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathadmin.php
More file actions
28 lines (21 loc) · 804 Bytes
/
admin.php
File metadata and controls
28 lines (21 loc) · 804 Bytes
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
<?php
defined('FLICKR_PATH') or die('Hacking attempt!');
global $template, $page, $conf;
load_language('plugin.lang', FLICKR_PATH);
// 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'), FLICKR_ADMIN.'-import');
$tabsheet->add('config', l10n('Configuration'), FLICKR_ADMIN.'-config');
$tabsheet->select($page['tab']);
$tabsheet->assign();
// include page
include(FLICKR_PATH.'admin/'.$page['tab'].'.php');
// template
$template->assign(array(
'FLICKR_PATH'=> FLICKR_PATH,
'FLICKR_ABS_PATH'=> dirname(__FILE__).'/',
'FLICKR_ADMIN' => FLICKR_ADMIN,
));
$template->assign_var_from_handle('ADMIN_CONTENT', 'flickr2piwigo');