36 |
36 |
define('OUTPUT_FILTER_AT_REPLACEMENT', $filter_settings['at_replacement']);
|
37 |
37 |
define('OUTPUT_FILTER_DOT_REPLACEMENT', $filter_settings['dot_replacement']);
|
38 |
38 |
|
|
39 |
/* ### filter type: replace MediaRel placeholder ############################ */
|
|
40 |
if (file_exists($sFilterDirectory.'filterMediaRel.php')) {
|
|
41 |
require_once($sFilterDirectory.'filterMediaRel.php');
|
|
42 |
$content = doFilterMediaRel($content);
|
|
43 |
}
|
|
44 |
/* ### filter type: change [wblinkxx] into real URLs ######################## */
|
|
45 |
if (file_exists($sFilterDirectory.'filterWbLink.php')) {
|
|
46 |
require_once($sFilterDirectory.'filterWbLink.php');
|
|
47 |
$content = doFilterWbLink($content);
|
|
48 |
}
|
39 |
49 |
/* ### filter type: execute droplets filter ################################# */
|
40 |
50 |
if (file_exists($sFilterDirectory.'filterDroplets.php')) {
|
41 |
|
require($sFilterDirectory.'filterDroplets.php');
|
|
51 |
require_once($sFilterDirectory.'filterDroplets.php');
|
42 |
52 |
$content = doFilterDroplets($content);
|
43 |
53 |
}
|
44 |
54 |
/* ### filter type: protect email addresses ################################# */
|
45 |
55 |
if( ($output_filter_mode & pow(2, 0)) || ($output_filter_mode & pow(2, 1)) ) {
|
46 |
56 |
if (file_exists($sFilterDirectory.'filterEmail.php')) {
|
47 |
|
require($sFilterDirectory.'filterEmail.php');
|
|
57 |
require_once($sFilterDirectory.'filterEmail.php');
|
48 |
58 |
$content = doFilterEmail($content, $output_filter_mode);
|
49 |
59 |
}
|
50 |
60 |
}
|
|
61 |
/* ### filter type: replace MediaRel placeholder ############################ */
|
|
62 |
if (file_exists($sFilterDirectory.'filterMediaRel.php')) {
|
|
63 |
require_once($sFilterDirectory.'filterMediaRel.php');
|
|
64 |
$content = doFilterMediaRel($content);
|
|
65 |
}
|
51 |
66 |
/* ### filter type: change [wblinkxx] into real URLs ######################## */
|
52 |
67 |
if (file_exists($sFilterDirectory.'filterWbLink.php')) {
|
53 |
|
require($sFilterDirectory.'filterWbLink.php');
|
|
68 |
require_once($sFilterDirectory.'filterWbLink.php');
|
54 |
69 |
$content = doFilterWbLink($content);
|
55 |
70 |
}
|
56 |
71 |
/* ### filter type: full qualified URLs to relative URLs##################### */
|
57 |
72 |
if($filter_settings['sys_rel'] == 1){
|
58 |
73 |
if (file_exists($sFilterDirectory.'filterRelUrl.php')) {
|
59 |
|
require($sFilterDirectory.'filterRelUrl.php');
|
|
74 |
require_once($sFilterDirectory.'filterRelUrl.php');
|
60 |
75 |
$content = doFilterRelUrl($content);
|
61 |
76 |
}
|
62 |
77 |
}
|
63 |
78 |
/* ### filter type: moves css definitions from <body> into <head> ########### */
|
64 |
79 |
if (file_exists($sFilterDirectory.'filterCssToHead.php')) {
|
65 |
|
require($sFilterDirectory.'filterCssToHead.php');
|
|
80 |
require_once($sFilterDirectory.'filterCssToHead.php');
|
66 |
81 |
$content = doFilterCssToHead($content);
|
67 |
82 |
}
|
68 |
83 |
|
added new OutputFilter plugin 'FilterMediaRel'