[3609] | 1 | <?php |
---|
[17307] | 2 | if (!defined('GVIDEO_PATH')) die('Hacking attempt!'); |
---|
[3609] | 3 | |
---|
[17307] | 4 | if (isset($_POST['save_config'])) |
---|
[3609] | 5 | { |
---|
[17307] | 6 | $conf['gvideo'] = array( |
---|
[19056] | 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'], |
---|
[3609] | 12 | 'vimeo' => array( |
---|
[17307] | 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(), |
---|
[3609] | 27 | ); |
---|
[19056] | 28 | |
---|
[17307] | 29 | conf_update_param('gvideo', serialize($conf['gvideo'])); |
---|
| 30 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
[3609] | 31 | } |
---|
| 32 | |
---|
[17307] | 33 | |
---|
[3609] | 34 | $template->assign(array( |
---|
[17307] | 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 | )); |
---|
[3609] | 39 | |
---|
| 40 | |
---|
[17307] | 41 | $template->set_filename('gvideo_content', dirname(__FILE__) . '/template/config.tpl'); |
---|
[3609] | 42 | |
---|
[3296] | 43 | ?> |
---|