source: trunk/themes/elegant/admin/admin.inc.php @ 23251

Last change on this file since 23251 was 23251, checked in by flop25, 11 years ago

feature:2924
adding 3 options for the default behaviour of the panels
ToDo lang files

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