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