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 | 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 | $query = " |
---|
15 | INSERT INTO " . CONFIG_TABLE . " (param,value,comment) |
---|
16 | VALUES ('elegant' , '".pwg_db_real_escape_string(serialize($config))."' , 'p_main_menu#');"; |
---|
17 | pwg_query($query); |
---|
18 | load_conf_from_db(); |
---|
19 | } |
---|
20 | elseif (count(unserialize( $conf['elegant'] ))!=3) |
---|
21 | { |
---|
22 | $conff=unserialize($conf['elegant']); |
---|
23 | $config = array( |
---|
24 | 'p_main_menu' => (isset($conff['p_main_menu'])) ? $conff['p_main_menu'] :'on', |
---|
25 | 'p_pict_descr' => (isset($conff['p_pict_descr'])) ? $conff['p_pict_descr'] :'on', |
---|
26 | 'p_pict_comment' => (isset($conff['p_pict_comment'])) ? $conff['p_pict_comment'] :'off', |
---|
27 | ); |
---|
28 | conf_update_param('elegant', pwg_db_real_escape_string(serialize($config))); |
---|
29 | load_conf_from_db(); |
---|
30 | } |
---|
31 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.