X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=36de0722a9dcace04bb1e527a3ab977792da348b;hb=ec52010e1662cd37640096b65d60fd26fbe6c172;hp=655bebb965d38006c50f6e36a2f6dafa4456da1d;hpb=6368bd165612dfa1e95e8d4c99b922797bf429af;p=friendica.git diff --git a/mod/update_network.php b/mod/update_network.php index 655bebb965..36de0722a9 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -1,14 +1,38 @@ \r\n"; - echo network_content($a,true); - echo "\r\n"; + $profile_uid = intval($_GET['p']); + + header("Content-type: text/html"); + echo "\r\n"; + echo (($_GET['msie'] == 1) ? '
' : '
'); + + + $text = network_content($a,$profile_uid); + $pattern = "/]*) src=\"([^\"]*)\"/"; + $replace = "'; + $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i"; + $text = preg_replace($pattern, $replace, $text); + $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i"; + $text = preg_replace($pattern, $replace, $text); + $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i"; + $text = preg_replace($pattern, $replace, $text); + $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i"; + $text = preg_replace($pattern, $replace, $text); + + + echo str_replace("\t",' ',$text); + echo (($_GET['msie'] == 1) ? '
' : ''); + echo "\r\n"; killme(); } \ No newline at end of file