X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=601808ff5e494109651cb1ffe7a803d9601a57dc;hb=122ad0af14f046c2462a03fe33967dc41abfc8b5;hp=230bbaa0b460d20cdabfb28e4ce5760f7a9b8019;hpb=c0df692f5fc4eaadb322614069b2c7ed40453fa1;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index 230bbaa0b4..601808ff5e 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -1,38 +1,36 @@ . + * + * See update_profile.php for documentation + */ + +use Friendica\App; +use Friendica\Core\System; +use Friendica\DI; + +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); }