Line | |
---|
1 | <?php |
---|
2 | load_language('theme.lang', PHPWG_THEMES_PATH.'Float/'); |
---|
3 | |
---|
4 | |
---|
5 | if (isset($_POST['default'])) |
---|
6 | { |
---|
7 | $params = array( |
---|
8 | 'bg_float' => '#FFA800', |
---|
9 | 'bd_float' => '#4F4F4F', |
---|
10 | 'title_float' => '#4F4F4F', |
---|
11 | |
---|
12 | ); |
---|
13 | |
---|
14 | conf_update_param('Float', pwg_db_real_escape_string(serialize($params))); |
---|
15 | |
---|
16 | array_push($page['infos'], l10n('Your configuration settings are saved')); |
---|
17 | |
---|
18 | load_conf_from_db(); |
---|
19 | } |
---|
20 | |
---|
21 | |
---|
22 | if (isset($_POST['submit'])) |
---|
23 | { |
---|
24 | $params = array( |
---|
25 | 'bg_float' => $_POST['bg_float'], |
---|
26 | 'bd_float' => $_POST['bd_float'], |
---|
27 | 'title_float' => $_POST['title_float'], |
---|
28 | |
---|
29 | ); |
---|
30 | |
---|
31 | conf_update_param('Float', pwg_db_real_escape_string(serialize($params))); |
---|
32 | |
---|
33 | array_push($page['infos'], l10n('Your configuration settings are saved')); |
---|
34 | |
---|
35 | load_conf_from_db(); |
---|
36 | } |
---|
37 | |
---|
38 | |
---|
39 | |
---|
40 | $params = array_merge(unserialize($conf['Float'])); |
---|
41 | |
---|
42 | $template->assign(array( |
---|
43 | 'selected_bg_float' => $params['bg_float'], |
---|
44 | 'selected_bd_float' => $params['bd_float'], |
---|
45 | 'selected_title_float' => $params['title_float'], |
---|
46 | )); |
---|
47 | |
---|
48 | |
---|
49 | |
---|
50 | $template->set_filenames(array('theme_admin_content' => dirname(__FILE__) . '/admin.tpl')); |
---|
51 | $template->assign('options', unserialize($conf['Float'])); |
---|
52 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
53 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.