Last change
on this file since 16622 was
14757,
checked in by plg, 12 years ago
|
avoid errors when custom text is not set yet
|
File size:
516 bytes
|
Line | |
---|
1 | <?php |
---|
2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
3 | |
---|
4 | check_status(ACCESS_ADMINISTRATOR); |
---|
5 | |
---|
6 | global $template, $conf, $user; |
---|
7 | |
---|
8 | if (isset($_POST['submitpersoform'])) |
---|
9 | { |
---|
10 | conf_update_param('persoformtop', $_POST['persoform_top']); |
---|
11 | conf_update_param('persoformbottom', $_POST['persoform_bottom']); |
---|
12 | |
---|
13 | // reload configuration |
---|
14 | load_conf_from_db(); |
---|
15 | } |
---|
16 | |
---|
17 | //charge Persoform |
---|
18 | $template->assign( |
---|
19 | array( |
---|
20 | 'PERSOFORMTOP' => @$conf['persoformtop'], |
---|
21 | 'PERSOFORMBOTTOM' => @$conf['persoformbottom'], |
---|
22 | ) |
---|
23 | ); |
---|
24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.