X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=1bf374657573b5785e38622f0b716ff8bfcffd7b;hb=4dd2a748b9625e134b62d71ef2e2772b75d51a96;hp=35e968dba994a61aaf50ffec1ba37d959d710f24;hpb=3ad52463f633b060bee519e8aa4d6e9453fdc2aa;p=friendica.git diff --git a/mod/update_network.php b/mod/update_network.php index 35e968dba9..1bf3746575 100644 --- a/mod/update_network.php +++ b/mod/update_network.php @@ -3,7 +3,7 @@ // See update_profile.php for documentation require_once('mod/network.php'); - +require_once('include/group.php'); function update_network_content(&$a) { @@ -11,17 +11,31 @@ function update_network_content(&$a) { header("Content-type: text/html"); echo "\r\n"; - echo (($_GET['msie'] == 1) ? '
' : '
'); - - - $text = network_content($a,$profile_uid); - $pattern = "/]*) src=\"([^\"]*)\"/"; - $replace = "' : '
'); + echo "
"; + + if (!get_pconfig($profile_uid, "system", "no_auto_update") OR ($_GET['force'] == 1)) + $text = network_content($a,$profile_uid); + else + $text = ""; + + $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 "
"; echo "\r\n"; killme(); -} \ No newline at end of file +}