Last change
on this file since 19855 was
19056,
checked in by mistic100, 12 years ago
|
allow to add private dailymotion videos, remove videobb support, add tags support
|
File size:
912 bytes
|
Rev | Line | |
---|
[17307] | 1 | <?php |
---|
| 2 | if (!defined('GVIDEO_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | global $template, $page, $conf; |
---|
| 5 | |
---|
[19056] | 6 | if (is_string($conf['gvideo'])) |
---|
| 7 | { |
---|
| 8 | $conf['gvideo'] = unserialize($conf['gvideo']); |
---|
| 9 | } |
---|
[17307] | 10 | |
---|
| 11 | $page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'add'; |
---|
| 12 | |
---|
[17626] | 13 | |
---|
| 14 | if ($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 | |
---|
[17307] | 25 | // include page |
---|
| 26 | include(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.