Rev | Line | |
---|
[15940] | 1 | <?php |
---|
| 2 | if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!'); |
---|
| 3 | |
---|
| 4 | if (isset($_POST['submit'])) |
---|
| 5 | { |
---|
| 6 | $conf['guestbook'] = array( |
---|
| 7 | 'comments_validation' => isset($_POST['comments_validation']), |
---|
| 8 | 'email_admin_on_comment' => isset($_POST['email_admin_on_comment']), |
---|
| 9 | 'email_admin_on_comment_validation' => isset($_POST['email_admin_on_comment_validation']), |
---|
| 10 | 'nb_comment_page' => $_POST['nb_comment_page'], |
---|
| 11 | ); |
---|
| 12 | |
---|
| 13 | conf_update_param('guestbook', serialize($conf['guestbook'])); |
---|
| 14 | array_push($page['infos'], l10n('Information data registered in database')); |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | $template->assign($conf['guestbook']); |
---|
| 18 | |
---|
| 19 | $template->set_filename('guestbook', dirname(__FILE__).'/template/config.tpl'); |
---|
| 20 | |
---|
| 21 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.