-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathadmin.php
31 lines (24 loc) · 866 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
<?php
defined('GVIDEO_PATH') or die('Hacking attempt!');
global $template, $page, $conf;
$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'add';
if ($page['tab'] != 'photo')
{
load_language('plugin.lang', GVIDEO_PATH);
// tabsheet
include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
$tabsheet = new tabsheet();
$tabsheet->add('add', l10n('Add a video'), GVIDEO_ADMIN . '-add');
$tabsheet->add('config', l10n('Configuration'), GVIDEO_ADMIN . '-config');
$tabsheet->select($page['tab']);
$tabsheet->assign();
}
// include page
include(GVIDEO_PATH . 'admin/' . $page['tab'] . '.php');
// template
$template->assign(array(
'GVIDEO_PATH'=> GVIDEO_PATH,
'GVIDEO_ABS_PATH'=> dirname(__FILE__).'/',
'GVIDEO_ADMIN' => GVIDEO_ADMIN,
));
$template->assign_var_from_handle('ADMIN_CONTENT', 'gvideo_content');