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

Last change on this file since 28286 was 26065, checked in by mistic100, 11 years ago

update for Piwigo 2.6 + code clean

File size: 863 bytes
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', serialize($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.