source: extensions/gvideo/admin.php @ 17507

Last change on this file since 17507 was 17383, checked in by mistic100, 12 years ago
  • simplify add page
  • simplify migration task
  • add option to add film effect on element edition page
File size: 828 bytes
Line 
1<?php
2if (!defined('GVIDEO_PATH')) die('Hacking attempt!');
3
4global $template, $page, $conf;
5
6$conf['gvideo'] = unserialize($conf['gvideo']);
7
8// tabsheet
9include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
10$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'add';
11 
12$tabsheet = new tabsheet();
13$tabsheet->add('add', l10n('Add a video'), GVIDEO_ADMIN . '-add');
14$tabsheet->add('config', l10n('Configuration'), GVIDEO_ADMIN . '-config');
15$tabsheet->select($page['tab']);
16$tabsheet->assign();
17
18// include page
19include(GVIDEO_PATH . 'admin/' . $page['tab'] . '.php');
20
21// template
22$template->assign(array(
23  'GVIDEO_PATH'=> GVIDEO_PATH,
24  'GVIDEO_ABS_PATH'=> dirname(__FILE__).'/',
25  'GVIDEO_ADMIN' => GVIDEO_ADMIN,
26  ));
27 
28$template->assign_var_from_handle('ADMIN_CONTENT', 'gvideo_content');
29
30?>
Note: See TracBrowser for help on using the repository browser.