1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category modules
|
5
|
* @package SecureFormSwitcher
|
6
|
* @author WebsiteBaker Project
|
7
|
* @copyright 2004-2009, Ryan Djurovich
|
8
|
* @copyright 2009-2011, Website Baker Org. e.V.
|
9
|
* @link http://www.websitebaker2.org/
|
10
|
* @license http://www.gnu.org/licenses/gpl.html
|
11
|
* @platform WebsiteBaker 2.8.2
|
12
|
* @requirements PHP 5.2.2 and higher
|
13
|
* @version $Id: install.php 1479 2011-07-25 00:42:10Z Luisehahne $
|
14
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb-archiv/tags/2.8.2/wb/modules/SecureFormSwitcher/install.php $
|
15
|
* @lastmodified $Date: 2011-07-25 02:42:10 +0200 (Mon, 25 Jul 2011) $
|
16
|
*
|
17
|
*/
|
18
|
|
19
|
// Must include code to stop this file being access directly
|
20
|
if(defined('WB_PATH') == false) { exit("Cannot access this file directly"); }
|
21
|
|
22
|
require_once(WB_PATH.'/framework/class.database.php');
|
23
|
require_once(WB_PATH.'/framework/functions.php');
|
24
|
|
25
|
$mod_path = (dirname(__FILE__));
|
26
|
require_once( $mod_path.'/language_load.php' );
|
27
|
|
28
|
$aDefault = array(
|
29
|
'secure_form_module' => '',
|
30
|
'wb_secform_secret' => '5609bnefg93jmgi99igjefg',
|
31
|
'wb_secform_secrettime' => '86400',
|
32
|
'wb_secform_timeout' => '7200',
|
33
|
'wb_secform_tokenname' => 'formtoken',
|
34
|
'wb_secform_usefp' => 'true',
|
35
|
'wb_secform_useip' => '2',
|
36
|
);
|
37
|
|
38
|
db_update_key_value('settings', $aDefault );
|
39
|
|
40
|
|