From 9823541c4b98f6cf5e659a8379d0ea0eeeb0c529 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 7 Jun 2015 21:36:50 -0700 Subject: make sure these are included --- mod/update_public.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 mod/update_public.php (limited to 'mod/update_public.php') diff --git a/mod/update_public.php b/mod/update_public.php new file mode 100644 index 000000000..d0a08e0e6 --- /dev/null +++ b/mod/update_public.php @@ -0,0 +1,37 @@ + 1) && (argv(1) == 'load')) ? 1 : 0); + header("Content-type: text/html"); + echo "\r\n"; + echo ((array_key_exists('msie',$_GET) && $_GET['msie'] == 1) ? '
' : '
'); + + $text = public_content($a,$profile_uid, $load); + $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 ((array_key_exists('msie',$_GET) && $_GET['msie'] == 1) ? '
' : ''); + echo "\r\n"; + killme(); + +} \ No newline at end of file -- cgit v1.2.3