Last change
on this file since 29841 was
29841,
checked in by gbo, 10 years ago
|
Fix some notice (when no title on frame) and compatibilty Back2Front
|
File size:
1.0 KB
|
Line | |
---|
1 | <?php |
---|
2 | // Update configuration settings in database |
---|
3 | |
---|
4 | // +-----------------------------------------------------------------------+ |
---|
5 | ///// HEADER |
---|
6 | // +-----------------------------------------------------------------------+ |
---|
7 | if ($page['tab'] == 'header') { |
---|
8 | if ( isset($_POST['save'])) |
---|
9 | { foreach($default_header['HD-dispheader'] as $cle => $valeur) |
---|
10 | { $param_llgbo_header['HD-dispheader'][$cle] = (empty($_POST[$cle])) ? False : True; |
---|
11 | } |
---|
12 | $conf['LLGBO2'] = array_replace($conf['LLGBO2'],$param_llgbo_header ); |
---|
13 | |
---|
14 | // Update DB |
---|
15 | conf_update_param('LLGBO2_settings',$conf['LLGBO2']); |
---|
16 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
17 | } |
---|
18 | |
---|
19 | if ( isset($_POST['reset']) ) |
---|
20 | { |
---|
21 | $conf['LLGBO2'] = array_replace($conf['LLGBO2'], $default_header); |
---|
22 | } |
---|
23 | |
---|
24 | // Reload settings for correct display after update |
---|
25 | $template->assign('LLGBO_DISP_HEADER', $conf['LLGBO2']['HD-dispheader']); |
---|
26 | $template->assign('LLGBO_PREFIXE_HEADER','llgbo_header_'); |
---|
27 | } |
---|
28 | |
---|
29 | ?> |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.