Revision 15
Added by Manuela about 7 years ago
branches/main/admin/interface/version.php | ||
---|---|---|
48 | 48 |
|
49 | 49 |
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled) |
50 | 50 |
if(!defined('VERSION')) { define('VERSION', '2.10.1-dev'); } |
51 |
if(!defined('REVISION')) { define('REVISION', '14'); }
|
|
51 |
if(!defined('REVISION')) { define('REVISION', '15'); }
|
|
52 | 52 |
if(!defined('SP')) { define('SP', ''); } |
53 | 53 |
|
branches/main/modules/output_filter/filters/filterEmail.php | ||
---|---|---|
125 | 125 |
/* ************************************************************************** */ |
126 | 126 |
$content |
127 | 127 |
); |
128 |
}
|
|
129 |
if ($bNeedMdcr) {
|
|
130 |
// test if js-decryption is installed
|
|
131 |
if (!preg_match('/<head.*<.*src=\".*\/mdcr.js.*>.*<\/head/siU', $content) ) {
|
|
132 |
// try to insert js-decrypt into <head> if available
|
|
133 |
$script = str_replace('\\', '/',str_replace(WB_PATH,'', dirname(__DIR__)).'/js/mdcr.js');
|
|
134 |
if(is_readable(WB_PATH.$script)) {
|
|
135 |
$scriptLink = "\t".'<script src="'.WB_URL.$script.'" type="text/javascript"></script>'."\n";
|
|
136 |
$regex = '/(.*)(<\s*?\/\s*?head\s*>.*)/isU';
|
|
137 |
$replace = '$1'.$scriptLink.'$2';
|
|
138 |
$content = preg_replace ($regex, $replace, $content);
|
|
128 |
if ($bNeedMdcr) {
|
|
129 |
// test if js-decryption is installed
|
|
130 |
if (!preg_match('/<head.*<.*src=\".*\/mdcr.js.*>.*<\/head/siU', $content) ) {
|
|
131 |
// try to insert js-decrypt into <head> if available
|
|
132 |
$script = str_replace('\\', '/',str_replace(WB_PATH,'', dirname(__DIR__)).'/js/mdcr.js');
|
|
133 |
if(is_readable(WB_PATH.$script)) {
|
|
134 |
$scriptLink = "\t".'<script src="'.WB_URL.$script.'" type="text/javascript"></script>'."\n";
|
|
135 |
$regex = '/(.*)(<\s*?\/\s*?head\s*>.*)/isU';
|
|
136 |
$replace = '$1'.$scriptLink.'$2';
|
|
137 |
$content = preg_replace ($regex, $replace, $content);
|
|
138 |
}
|
|
139 | 139 |
} |
140 | 140 |
} |
141 |
return $content; |
|
141 | 142 |
} |
142 |
return $content; |
|
143 | 143 |
} |
Also available in: Unified diff
a small optimization