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

Last change on this file since 15940 was 15940, checked in by mistic100, 12 years ago

first and basic version

File size: 695 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) 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    );
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.