X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=601808ff5e494109651cb1ffe7a803d9601a57dc;hb=974f7bffc82d024a38b4709c6b250677a217f65a;hp=b9294d755898bbe3cece89f4228fa8c8e3c237e7;hpb=abdecd2b2fd61859070404c39b2cce304a27d175;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index b9294d7558..601808ff5e 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); }