Rev | Line | |
---|
[27148] | 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 | 'autoplay' => isset($_POST['autoplay']), |
---|
| 12 | 'stopautoplayontouch' => isset($_POST['stopautoplayontouch']), |
---|
| 13 | 'loop' => isset($_POST['loop']), |
---|
| 14 | ); |
---|
| 15 | if (isset($_POST['allowfullscreen'])) |
---|
| 16 | $conf['Fotorama']['allowfullscreen'] = $_POST['allowfullscreen']; |
---|
| 17 | if (isset($_POST['fit'])) |
---|
| 18 | $conf['Fotorama']['fit'] = $_POST['fit']; |
---|
| 19 | if (isset($_POST['transition'])) |
---|
| 20 | $conf['Fotorama']['transition'] = $_POST['transition']; |
---|
| 21 | |
---|
| 22 | conf_update_param('Fotorama', serialize($conf['Fotorama'])); |
---|
| 23 | $page['infos'][] = l10n('Information data registered in database'); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | $template->assign(array( |
---|
| 27 | 'Fotorama' => $conf['Fotorama'], |
---|
| 28 | )); |
---|
| 29 | |
---|
| 30 | $template->set_filename('admintools_content', realpath(FOTORAMA_PATH . 'template/admin.tpl')); |
---|
| 31 | $template->assign_var_from_handle('ADMIN_CONTENT', 'admintools_content'); |
---|
| 32 | |
---|
| 33 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.