1 |
1420
|
Luisehahne
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
*
|
4 |
|
|
* @category modules
|
5 |
|
|
* @package output_filter
|
6 |
1520
|
darkviper
|
* @author Christian Sommer, WB-Project, Werner v.d. Decken
|
7 |
|
|
* @copyright 2011-, Website Baker Org. e.V.
|
8 |
1420
|
Luisehahne
|
* @link http://www.websitebaker2.org/
|
9 |
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
10 |
1520
|
darkviper
|
* @platform WebsiteBaker 2.8.2
|
11 |
1420
|
Luisehahne
|
* @requirements PHP 5.2.2 and higher
|
12 |
|
|
* @version $Id$
|
13 |
|
|
* @filesource $HeadURL$
|
14 |
|
|
* @lastmodified $Date$
|
15 |
|
|
*
|
16 |
|
|
*/
|
17 |
1520
|
darkviper
|
/* -------------------------------------------------------- */
|
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 |
1420
|
Luisehahne
|
|
23 |
|
|
$table = TABLE_PREFIX .'mod_output_filter';
|
24 |
|
|
$database->query("DROP TABLE IF EXISTS `$table`");
|
25 |
|
|
|
26 |
1538
|
Luisehahne
|
$database->query("CREATE TABLE IF NOT EXISTS `$table` (
|
27 |
1520
|
darkviper
|
`sys_rel` INT NOT NULL DEFAULT '0',
|
28 |
1420
|
Luisehahne
|
`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 |
1538
|
Luisehahne
|
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"
|
33 |
1420
|
Luisehahne
|
);
|
34 |
|
|
|
35 |
|
|
// add default values to the module table
|
36 |
|
|
$database->query("INSERT INTO ".TABLE_PREFIX
|
37 |
1484
|
Luisehahne
|
."mod_output_filter (sys_rel,email_filter, mailto_filter, at_replacement, dot_replacement) VALUES ('0','1', '1', '(at)', '(dot)')");
|