source: extensions/gvideo/admin.php @ 30537

Last change on this file since 30537 was 29627, checked in by mistic100, 10 years ago

remove "safe mode" checkbox, now fully automatic

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