Rev | Line | |
---|
[15940] | 1 | <?php |
---|
[26065] | 2 | defined('GUESTBOOK_PATH') or die('Hacking attempt!'); |
---|
[15940] | 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'], |
---|
[15948] | 11 | 'activate_rating' => isset($_POST['activate_rating']), |
---|
[24889] | 12 | 'guest_can_view' => isset($_POST['guest_can_view']), |
---|
| 13 | 'guest_can_add' => isset($_POST['guest_can_add']), |
---|
[15940] | 14 | ); |
---|
| 15 | |
---|
[28841] | 16 | conf_update_param('guestbook', $conf['guestbook']); |
---|
[26065] | 17 | $page['infos'][] = l10n('Information data registered in database'); |
---|
[15940] | 18 | } |
---|
| 19 | |
---|
| 20 | $template->assign($conf['guestbook']); |
---|
| 21 | |
---|
[24889] | 22 | $template->set_filename('guestbook', realpath(GUESTBOOK_PATH . 'admin/template/config.tpl')); |
---|
Note: See
TracBrowser
for help on using the repository browser.