source: extensions/gvideo/admin.php @ 27325

Last change on this file since 27325 was 26524, checked in by mistic100, 11 years ago

add link in Admin Tools 'Edit' menu if available

File size: 862 bytes
Line 
1<?php
2defined('GVIDEO_PATH') or die('Hacking attempt!');
3
4global $template, $page, $conf;
5
6load_language('plugin.lang', GVIDEO_PATH);
7
8$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'add';
9
10if ($page['tab'] != 'photo')
11{
12  // tabsheet
13  include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
14  $tabsheet = new tabsheet();
15  $tabsheet->add('add', l10n('Add a video'), GVIDEO_ADMIN . '-add');
16  $tabsheet->add('config', l10n('Configuration'), GVIDEO_ADMIN . '-config');
17  $tabsheet->select($page['tab']);
18  $tabsheet->assign();
19}
20
21// include page
22include(GVIDEO_PATH . 'admin/' . $page['tab'] . '.php');
23
24// template
25$template->assign(array(
26  'GVIDEO_PATH'=> GVIDEO_PATH,
27  'GVIDEO_ABS_PATH'=> dirname(__FILE__).'/',
28  'GVIDEO_ADMIN' => GVIDEO_ADMIN,
29  ));
30 
31$template->assign_var_from_handle('ADMIN_CONTENT', 'gvideo_content');
Note: See TracBrowser for help on using the repository browser.