X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fupdate_network.php;h=258d03e3227e80b35183ab2dcc92edfd961d8bbb;hb=2741726402430f64ffd7a5aeeba093dd91974e92;hp=cf9f11f586f734d4967a12fbd2c094ac5e39549c;hpb=0bf8e418a8b8c57607ed8a52cff6b3ac53d38d05;p=friendica.git
diff --git a/mod/update_network.php b/mod/update_network.php
index cf9f11f586..258d03e322 100644
--- a/mod/update_network.php
+++ b/mod/update_network.php
@@ -2,26 +2,41 @@
// See update_profile.php for documentation
-require_once('mod/network.php');
-require_once('include/group.php');
+require_once("mod/network.php");
+require_once("include/group.php");
function update_network_content(&$a) {
- $profile_uid = intval($_GET['p']);
+ $profile_uid = intval($_GET["p"]);
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 = "".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
+}