X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=1bf374657573b5785e38622f0b716ff8bfcffd7b;hb=0c9cc29a51941eb572bf16fd5489d0947d47d033;hp=1c790ead169869401d070baa8f6b2c675f5d2ee2;hpb=06bdf8a4cfe9087573494c0b782a33d1e28ac043;p=friendica.git
diff --git a/mod/update_network.php b/mod/update_network.php
index 1c790ead16..1bf3746575 100644
--- a/mod/update_network.php
+++ b/mod/update_network.php
@@ -3,23 +3,39 @@
// See update_profile.php for documentation
require_once('mod/network.php');
-
+require_once('include/group.php');
function update_network_content(&$a) {
+ $profile_uid = intval($_GET['p']);
+
header("Content-type: text/html");
echo "
\r\n";
- echo (($_GET['msie'] == 1) ? '' : '
');
-
-
- $text = network_content($a,true);
- $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 = "
' . 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();
-}
\ No newline at end of file
+}