1 | <?php |
---|
2 | if (!defined('GVIDEO_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | if (isset($_POST['save_config'])) |
---|
5 | { |
---|
6 | $conf['gvideo'] = array( |
---|
7 | 'autoplay' => (int)$_POST['autoplay'], |
---|
8 | 'width' => (int)$_POST['width'], |
---|
9 | 'height' => (int)$_POST['height'], |
---|
10 | 'sync_description' => (int)$_POST['sync_description'], |
---|
11 | 'sync_tags' => (int)$_POST['sync_tags'], |
---|
12 | 'vimeo' => array( |
---|
13 | 'title' => (int)isset($_POST['vimeo']['title']), |
---|
14 | 'portrait' => (int)isset($_POST['vimeo']['portrait']), |
---|
15 | 'byline' => (int)isset($_POST['vimeo']['byline']), |
---|
16 | 'color' => $_POST['vimeo']['color'], |
---|
17 | ), |
---|
18 | 'dailymotion' => array( |
---|
19 | 'logo' => (int)isset($_POST['dailymotion']['logo']), |
---|
20 | 'title' => (int)isset($_POST['dailymotion']['title']), |
---|
21 | 'color' => $_POST['dailymotion']['color'], |
---|
22 | ), |
---|
23 | 'youtube' => array(), |
---|
24 | 'wat' => array(), |
---|
25 | 'wideo' => array(), |
---|
26 | 'videobb' => array(), |
---|
27 | ); |
---|
28 | |
---|
29 | conf_update_param('gvideo', serialize($conf['gvideo'])); |
---|
30 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
31 | } |
---|
32 | |
---|
33 | |
---|
34 | $template->assign(array( |
---|
35 | 'gvideo' => $conf['gvideo'], |
---|
36 | 'vimeo_colors' => array('00adef', 'ff9933', 'c9ff23', 'ff0179', 'ffffff'), |
---|
37 | 'dailymotion_colors' => array('F7FFFD', 'E02C72', '92ADE0', 'E8D9AC', 'C2E165', '052880', 'FF0000', '834596'), |
---|
38 | )); |
---|
39 | |
---|
40 | |
---|
41 | $template->set_filename('gvideo_content', dirname(__FILE__) . '/template/config.tpl'); |
---|
42 | |
---|
43 | ?> |
---|