1 |
1294
|
Luisehahne
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
*
|
4 |
|
|
* @category modules
|
5 |
|
|
* @package output_filter
|
6 |
|
|
* @author WebsiteBaker Project
|
7 |
|
|
* @copyright 2004-2009, Ryan Djurovich
|
8 |
|
|
* @copyright 2009-2010, 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.x
|
12 |
|
|
* @requirements PHP 4.4.9 and higher
|
13 |
|
|
* @version $Id$
|
14 |
|
|
* @filesource $HeadURL$
|
15 |
|
|
* @lastmodified $Date$
|
16 |
|
|
*
|
17 |
|
|
*/
|
18 |
|
|
|
19 |
|
|
// prevent this file from being accessed directly
|
20 |
|
|
if(!defined('WB_PATH')) die(header('Location: ../index.php'));
|
21 |
|
|
|
22 |
|
|
$table = TABLE_PREFIX .'mod_output_filter';
|
23 |
|
|
$database->query("DROP TABLE IF EXISTS `$table`");
|
24 |
|
|
|
25 |
|
|
$database->query("CREATE TABLE `$table` (
|
26 |
|
|
`email_filter` VARCHAR(1) NOT NULL DEFAULT '0',
|
27 |
|
|
`mailto_filter` VARCHAR(1) NOT NULL DEFAULT '0',
|
28 |
|
|
`at_replacement` VARCHAR(255) NOT NULL DEFAULT '(at)',
|
29 |
|
|
`dot_replacement` VARCHAR(255) NOT NULL DEFAULT '(dot)'
|
30 |
|
|
)"
|
31 |
|
|
);
|
32 |
|
|
|
33 |
|
|
// add default values to the module table
|
34 |
|
|
$database->query("INSERT INTO ".TABLE_PREFIX
|
35 |
|
|
."mod_output_filter (email_filter, mailto_filter, at_replacement, dot_replacement) VALUES ('0', '0', '(at)', '(dot)')");
|
36 |
|
|
|
37 |
673
|
doc
|
?>
|