1 | <?php |
---|
2 | |
---|
3 | defined('FOTORAMA_PATH') or die('Hacking attempt!'); |
---|
4 | |
---|
5 | global $conf, $template, $page; |
---|
6 | |
---|
7 | if (isset($_POST['submit'])) |
---|
8 | { |
---|
9 | $conf['Fotorama'] = array( |
---|
10 | 'shadows' => isset($_POST['shadows']), |
---|
11 | 'only_fullscreen' => isset($_POST['only_fullscreen']), |
---|
12 | 'autoplay' => isset($_POST['autoplay']), |
---|
13 | 'stopautoplayontouch' => isset($_POST['stopautoplayontouch']), |
---|
14 | 'loop' => isset($_POST['loop']), |
---|
15 | 'enable_caption' => isset($_POST['enable_caption']), |
---|
16 | 'replace_picture' => isset($_POST['replace_picture']), |
---|
17 | 'replace_picture_only_users' => isset($_POST['replace_picture_only_users']), |
---|
18 | 'clicktransition_crossfade' => isset($_POST['clicktransition_crossfade']), |
---|
19 | 'close_button' => isset($_POST['close_button']), |
---|
20 | 'resize' => isset($_POST['resize']), |
---|
21 | ); |
---|
22 | if (isset($_POST['allowfullscreen'])) |
---|
23 | $conf['Fotorama']['allowfullscreen'] = $_POST['allowfullscreen']; |
---|
24 | if (isset($_POST['fit'])) |
---|
25 | $conf['Fotorama']['fit'] = $_POST['fit']; |
---|
26 | if (isset($_POST['transition'])) |
---|
27 | $conf['Fotorama']['transition'] = $_POST['transition']; |
---|
28 | if (isset($_POST['nav'])) |
---|
29 | $conf['Fotorama']['nav'] = $_POST['nav']; |
---|
30 | if (isset($_POST['fullscreen_nav'])) |
---|
31 | $conf['Fotorama']['fullscreen_nav'] = $_POST['fullscreen_nav']; |
---|
32 | if (isset($_POST['thumbheight'])) |
---|
33 | $conf['Fotorama']['thumbheight'] = $_POST['thumbheight']; |
---|
34 | if (isset($_POST['period'])) |
---|
35 | $conf['Fotorama']['period'] = $_POST['period']; |
---|
36 | |
---|
37 | conf_update_param('Fotorama', serialize($conf['Fotorama'])); |
---|
38 | $page['infos'][] = l10n('Information data registered in database'); |
---|
39 | } |
---|
40 | |
---|
41 | $template->assign(array( |
---|
42 | 'Fotorama' => $conf['Fotorama'], |
---|
43 | )); |
---|
44 | |
---|
45 | $template->set_filename('admintools_content', realpath(FOTORAMA_PATH . 'template/admin.tpl')); |
---|
46 | $template->assign_var_from_handle('ADMIN_CONTENT', 'admintools_content'); |
---|
47 | |
---|
48 | ?> |
---|