X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_display.php;h=405933251056f6f93a1e743acde622ff9bfb813f;hb=9f11476ca09c128e4489f702895f699b8158acc8;hp=e10af08437d7df74bfcb8f7054c5889cc03d2fbd;hpb=5b4944fe8e951776542a0401a6766e92ff384020;p=friendica.git diff --git a/mod/update_display.php b/mod/update_display.php index e10af08437..4059332510 100644 --- a/mod/update_display.php +++ b/mod/update_display.php @@ -1,38 +1,39 @@ \r\n"; - echo (($_GET['msie'] == 1) ? '
' : '
'); - - - $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); - - - echo str_replace("\t",' ',$text); - echo (($_GET['msie'] == 1) ? '
' : ''); + echo "
"; + + $text = display_content($a, true, $profile_uid); + + if (PConfig::get(local_user(), "system", "bandwidth_saver")) { + $replace = "
" . L10n::t("[Embedded content - reload page to view]") . "
"; + $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 "
"; echo "\r\n"; - killme(); - + exit(); }