X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=554e4b94f7fcf4fb92be154204b045a8901991c1;hb=a69e128fe4d202296582f3810239ebc4635d8b6a;hp=b9294d755898bbe3cece89f4228fa8c8e3c237e7;hpb=abdecd2b2fd61859070404c39b2cce304a27d175;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index b9294d7558..554e4b94f7 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -1,40 +1,36 @@ . + * + * See update_profile.php for documentation + */ use Friendica\App; -use Friendica\Core\PConfig; +use Friendica\Core\System; +use Friendica\DI; -require_once("include/group.php"); require_once "mod/display.php"; function update_display_content(App $a) { $profile_uid = intval($_GET["p"]); - header("Content-type: text/html"); - echo "\r\n"; - echo "
"; - - $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); - } + $text = display_content($a, true, $profile_uid); - echo str_replace("\t", " ", $text); - echo "
"; - echo "\r\n"; - killme(); + System::htmlUpdateExit($text); }