source: extensions/gvideo/admin.php @ 28287

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

add link in Admin Tools 'Edit' menu if available

File size: 862 bytes
RevLine 
[17307]1<?php
[26470]2defined('GVIDEO_PATH') or die('Hacking attempt!');
[17307]3
4global $template, $page, $conf;
5
[26524]6load_language('plugin.lang', GVIDEO_PATH);
7
[17307]8$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'add';
9
[17626]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
[17307]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.