1
|
<?php
|
2
|
/**
|
3
|
*
|
4
|
* @category modules
|
5
|
* @package output_filter
|
6
|
* @author Christian Sommer, WB-Project, Werner v.d. Decken
|
7
|
* @copyright 2011-, Website Baker Org. e.V.
|
8
|
* @link http://www.websitebaker2.org/
|
9
|
* @license http://www.gnu.org/licenses/gpl.html
|
10
|
* @platform WebsiteBaker 2.8.2
|
11
|
* @requirements PHP 5.2.2 and higher
|
12
|
* @version $Id: install.php 1538 2011-12-10 15:06:15Z Luisehahne $
|
13
|
* @filesource $HeadURL: svn://isteam.dynxs.de/wb-archiv/tags/2.8.3/wb/modules/output_filter/install.php $
|
14
|
* @lastmodified $Date: 2011-12-10 16:06:15 +0100 (Sat, 10 Dec 2011) $
|
15
|
*
|
16
|
*/
|
17
|
/* -------------------------------------------------------- */
|
18
|
// Must include code to stop this file being accessed directly
|
19
|
require_once( dirname(dirname(dirname(__FILE__))).'/framework/globalExceptionHandler.php');
|
20
|
if(!defined('WB_PATH')) { throw new IllegalFileException(); }
|
21
|
/* -------------------------------------------------------- */
|
22
|
|
23
|
$table = TABLE_PREFIX .'mod_output_filter';
|
24
|
$database->query("DROP TABLE IF EXISTS `$table`");
|
25
|
|
26
|
$database->query("CREATE TABLE IF NOT EXISTS `$table` (
|
27
|
`sys_rel` INT NOT NULL DEFAULT '0',
|
28
|
`email_filter` VARCHAR(1) NOT NULL DEFAULT '0',
|
29
|
`mailto_filter` VARCHAR(1) NOT NULL DEFAULT '0',
|
30
|
`at_replacement` VARCHAR(255) NOT NULL DEFAULT '(at)',
|
31
|
`dot_replacement` VARCHAR(255) NOT NULL DEFAULT '(dot)'
|
32
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"
|
33
|
);
|
34
|
|
35
|
// add default values to the module table
|
36
|
$database->query("INSERT INTO ".TABLE_PREFIX
|
37
|
."mod_output_filter (sys_rel,email_filter, mailto_filter, at_replacement, dot_replacement) VALUES ('0','1', '1', '(at)', '(dot)')");
|