WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
$script = str_replace('\\', '/', dirname(__FILE__)).'/js/mdcr.js'; if(is_readable($script)) { $scriptLink = '<script src="'.$script.'" type="text/javascript"></script>'; $regex = '/(.*)(<\s*?\/\s*?head\s*>.*)/isU'; $replace = '$1'.$scriptLink.'$2'; $content = preg_replace ($regex, $replace, $content); $output_filter_mode |= pow(2, 2); // n | 2^2 }
$script = str_replace(dirname(__FILE__),WB_URL.'/modules/output_filter',$script);
if(is_readable($script)) {
$script = str_replace('\\', '/', dirname(__FILE__)).'/js/mdcr.js'; if(is_readable($script)) { $script = str_replace(dirname(__FILE__),WB_URL.'/modules/output_filter',$script); $scriptLink = '<script src="'.$script.'" type="text/javascript"></script>'; $regex = '/(.*)(<\s*?\/\s*?head\s*>.*)/isU'; $replace = '$1'.$scriptLink.'$2'; $content = preg_replace ($regex, $replace, $content); $output_filter_mode |= pow(2, 2); // n | 2^2 }