From: Zach Prezkuta Date: Fri, 2 Nov 2012 00:36:11 +0000 (-0600) Subject: update_display for display live updates X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c6a3b87359b56fe8899eae5432af7b8bd0db9d37;p=friendica.git update_display for display live updates --- diff --git a/mod/update_display.php b/mod/update_display.php new file mode 100644 index 0000000000..e10af08437 --- /dev/null +++ b/mod/update_display.php @@ -0,0 +1,38 @@ +\r\n"; + echo (($_GET['msie'] == 1) ? '
' : '
'); + + + $text = display_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(); + +}