From c6a3b87359b56fe8899eae5432af7b8bd0db9d37 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Thu, 1 Nov 2012 18:36:11 -0600 Subject: [PATCH] update_display for display live updates --- mod/update_display.php | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 mod/update_display.php 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(); + +} -- 2.39.5