source: extensions/gvideo/admin/config.php @ 17866

Last change on this file since 17866 was 17307, checked in by mistic100, 12 years ago

new version for Piwigo 2.4 (renamed into 'Embedded Videos')

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