Revision 1294
Added by Dietmar over 14 years ago
EmailFilter.php | ||
---|---|---|
36 | 36 |
$output_filter_mode = ($filter_settings['email_filter'] == '1') ? 1 : 0; // 0|1 |
37 | 37 |
|
38 | 38 |
// check if mailto mail addresses needs to be filtered |
39 |
if($filter_settings['mailto_filter'] == '1') { |
|
39 |
if($filter_settings['mailto_filter'] == '1') |
|
40 |
{ |
|
40 | 41 |
$output_filter_mode = $output_filter_mode + 2; // 0|2 |
41 | 42 |
|
42 |
// check if Javascript mailto encryption is enabled (call register_frontend_functions in the template) |
|
43 |
$search = '<script src="' .WB_URL .'/modules/droplets/js/mdcr.js" type="text/javascript"></script>'; |
|
44 |
if(strpos($wb_page_data, $search) !== false) { |
|
45 |
$output_filter_mode = $output_filter_mode + 4; // 0|4 |
|
46 |
} |
|
43 |
// check if Javascript mailto encryption is enabled (call register_frontend_functions in the template) |
|
44 |
$search_pattern = '/<.*src=\".*\/mdcr.js.*>/iU'; |
|
45 |
if(preg_match($search_pattern, $wb_page_data)) |
|
46 |
{ |
|
47 |
$output_filter_mode = $output_filter_mode + 4; // 0|4 |
|
48 |
} |
|
47 | 49 |
} |
48 | 50 |
|
49 | 51 |
// define some constants so we do not call the database in the callback function again |
50 | 52 |
Also available in: Unified diff
update headerinfo
change $search_pattern for check if Javascript mailto encryption is enabled
module output_filter set to version 0.12