Last change
on this file since 30460 was
30460,
checked in by plg, 10 years ago
|
bug 3174 fixed: avoid using load_conf_from_db, use 3rd parameter updateGlobal instead
|
File size:
801 bytes
|
Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
4 | |
---|
5 | global $prefixeTable, $conf; |
---|
6 | |
---|
7 | if (!isset($conf['elegant'])) |
---|
8 | { |
---|
9 | $config = array( |
---|
10 | 'p_main_menu' => 'on', //on - off - disabled |
---|
11 | 'p_pict_descr' => 'on', //on - off - disabled |
---|
12 | 'p_pict_comment' => 'off', //on - off - disabled |
---|
13 | ); |
---|
14 | |
---|
15 | conf_update_param('elegant', $config, true); |
---|
16 | } |
---|
17 | elseif (count(safe_unserialize( $conf['elegant'] ))!=3) |
---|
18 | { |
---|
19 | $conff = safe_unserialize($conf['elegant']); |
---|
20 | $config = array( |
---|
21 | 'p_main_menu' => (isset($conff['p_main_menu'])) ? $conff['p_main_menu'] :'on', |
---|
22 | 'p_pict_descr' => (isset($conff['p_pict_descr'])) ? $conff['p_pict_descr'] :'on', |
---|
23 | 'p_pict_comment' => (isset($conff['p_pict_comment'])) ? $conff['p_pict_comment'] :'off', |
---|
24 | ); |
---|
25 | |
---|
26 | conf_update_param('elegant', $config, true); |
---|
27 | } |
---|
28 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.