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

Last change on this file since 28841 was 28841, checked in by mistic100, 10 years ago

use new maintain class

File size: 852 bytes
RevLine 
[15940]1<?php
[26065]2defined('GUESTBOOK_PATH') or die('Hacking attempt!');
[15940]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'],
[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.