Revision 673
Added by doc almost 17 years ago
index.php | ||
---|---|---|
79 | 79 |
} |
80 | 80 |
} |
81 | 81 |
|
82 |
if(file_exists(WB_PATH .'/modules/mail_filter/filter-routines.php')) {
|
|
83 |
// include the filter routines
|
|
84 |
require_once(WB_PATH .'/modules/mail_filter/filter-routines.php');
|
|
82 |
if(file_exists(WB_PATH .'/modules/output_filter/filter-routines.php')) {
|
|
83 |
// include the output filter module routines
|
|
84 |
@require_once(WB_PATH .'/modules/output_filter/filter-routines.php');
|
|
85 | 85 |
|
86 |
// get the mail filter settings from the database |
|
87 |
$mail_filter_settings = get_mail_filter_settings(); |
|
88 |
// check if we should filter emails before displaying them |
|
89 |
if($mail_filter_settings['email_filter'] == '1') { |
|
90 |
// filter email addresses before displaying them |
|
86 |
if(function_exists('filter_frontend_output')) { |
|
87 |
// store output in variable for filtering |
|
91 | 88 |
ob_start(); |
92 | 89 |
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php'); |
93 | 90 |
$frontend_output = ob_get_contents(); |
94 | 91 |
ob_end_clean(); |
95 |
$frontend_output = filter_email_links($frontend_output);
|
|
96 |
echo $frontend_output;
|
|
92 |
// Display the filtered output on the frontend
|
|
93 |
echo filter_frontend_output($frontend_output);
|
|
97 | 94 |
die; |
98 | 95 |
} |
99 |
} |
|
96 |
} |
|
97 |
|
|
100 | 98 |
// Display the template (no output filtering) |
101 | 99 |
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php'); |
102 | 100 |
|
Also available in: Unified diff
Removed module mail_filter and added revised version under new module name output filter. Bugs with regular expression fixed.