X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=581d5d97a2535c227a9c8b2ecd006d4ca0c9e1bf;hb=7ce97459d437a98ece0077b28bb36771aa36ed82;hp=b0fbbbba637e1ca4d5eccedae12ab3c0c1afcbfe;hpb=fe89e7760ebfe6f4d0c4a603e2ef777d53fcc8ef;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index b0fbbbba63..581d5d97a2 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); }