source: extensions/gvideo/admin.php @ 20461

Revision 19056, 912 bytes checked in by mistic100, 7 years ago (diff)

allow to add private dailymotion videos, remove videobb support, add tags support

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