Revision 576
Added by doc almost 17 years ago
index.php | ||
---|---|---|
79 | 79 |
} |
80 | 80 |
} |
81 | 81 |
|
82 |
// Display the template |
|
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'); |
|
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 |
|
91 |
ob_start(); |
|
92 |
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php'); |
|
93 |
$frontend_output = ob_get_contents(); |
|
94 |
ob_end_clean(); |
|
95 |
$frontend_output = filter_email_links($frontend_output); |
|
96 |
echo $frontend_output; |
|
97 |
die; |
|
98 |
} |
|
99 |
} |
|
100 |
// Display the template (no output filtering) |
|
83 | 101 |
require(WB_PATH.'/templates/'.TEMPLATE.'/index.php'); |
84 | 102 |
|
85 | 103 |
?> |
Also available in: Unified diff
Added the new admin tool email output filter which allows to transform emails before displaying them on the frontend