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

Last change on this file since 26470 was 26470, checked in by mistic100, 10 years ago

Update for Piwigo 2.6
TODO: button on Admin Tools bar

File size: 1.4 KB
Line 
1<?php
2defined('GVIDEO_PATH') or die('Hacking attempt!');
3
4if (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  $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', realpath(GVIDEO_PATH . 'admin/template/config.tpl'));
Note: See TracBrowser for help on using the repository browser.