Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | |
---|
4 | load_language('theme.lang', PHPWG_THEMES_PATH.'elegant/'); |
---|
5 | |
---|
6 | if (isset($_POST['submit'])) |
---|
7 | { |
---|
8 | $params = array( |
---|
9 | 'style' => $_POST['Junk_style'], |
---|
10 | 'tab' => $_POST['tab'], |
---|
11 | ); |
---|
12 | |
---|
13 | conf_update_param('Junk', pwg_db_real_escape_string(serialize($params))); |
---|
14 | |
---|
15 | array_push($page['infos'], l10n('Your configuration settings are saved')); |
---|
16 | |
---|
17 | load_conf_from_db(); |
---|
18 | } |
---|
19 | |
---|
20 | |
---|
21 | $template->set_filenames( |
---|
22 | array( |
---|
23 | 'theme_admin_content' => dirname(__FILE__) . '/admin.tpl') |
---|
24 | ); |
---|
25 | |
---|
26 | $template->assign('junk', unserialize($conf['Junk'])); |
---|
27 | |
---|
28 | $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content'); |
---|
29 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.