source: extensions/GuestBook/admin/config.php @ 28841

Revision 28841, 852 bytes checked in by mistic100, 5 years ago (diff)

use new maintain class

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