Rev | Line | |
---|
[12975] | 1 | <?php |
---|
| 2 | |
---|
| 3 | // Need upgrade? |
---|
| 4 | |
---|
| 5 | global $conf; |
---|
| 6 | |
---|
| 7 | if (!isset($conf['stripped-galleria'])) |
---|
| 8 | include(PHPWG_THEMES_PATH.'stripped-galleria/admin/upgrade.inc.php'); |
---|
| 9 | |
---|
| 10 | load_language('theme.lang', PHPWG_THEMES_PATH.'stripped-galleria/'); |
---|
| 11 | |
---|
| 12 | $config= array (); |
---|
| 13 | |
---|
| 14 | if(isset($_POST['submit_stripped-galleria'])) |
---|
| 15 | { |
---|
| 16 | $config['clicknext']=($_POST['f_clickAction'] == 'next'); |
---|
| 17 | $config['lightbox']='none'; |
---|
| 18 | if ($_POST['f_clickAction'] == 'lightbox') {$config['lightbox']='normal';} |
---|
| 19 | if ($_POST['f_clickAction'] == 'lightboxHD') {$config['lightbox']='hd';} |
---|
| 20 | $config['transition']=$_POST['f_transition']; |
---|
| 21 | |
---|
| 22 | conf_update_param('stripped-galleria', pwg_db_real_escape_string(serialize($config))); |
---|
| 23 | |
---|
| 24 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
| 25 | |
---|
| 26 | load_conf_from_db(); |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | $template->set_filenames(array( |
---|
| 30 | 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); |
---|
| 31 | |
---|
| 32 | $template->assign('options', unserialize($conf['stripped-galleria'])); |
---|
| 33 | |
---|
| 34 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
| 35 | |
---|
| 36 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.