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