]> git.mxchange.org Git - friendica.git/blob - mod/update_display.php
Merge pull request #2314 from rabuzarus/0302_datetime_cleanup
[friendica.git] / mod / update_display.php
1 <?php
2
3 // See update_profile.php for documentation
4
5 require_once('mod/display.php');
6 require_once('include/group.php');
7
8 if(! function_exists('update_display_content')) {
9 function update_display_content(&$a) {
10
11         $profile_uid = intval($_GET['p']);
12
13         header("Content-type: text/html");
14         echo "<!DOCTYPE html><html><body>\r\n";
15         echo "<section>";
16
17
18         $text = display_content($a,$profile_uid);
19         $pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
20         $replace = "<img\${1} dst=\"\${2}\"";
21         $text = preg_replace($pattern, $replace, $text);
22
23         $replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />';
24         $pattern = "/<\s*audio[^>]*>(.*?)<\s*\/\s*audio>/i";
25         $text = preg_replace($pattern, $replace, $text);
26         $pattern = "/<\s*video[^>]*>(.*?)<\s*\/\s*video>/i";
27         $text = preg_replace($pattern, $replace, $text);
28         $pattern = "/<\s*embed[^>]*>(.*?)<\s*\/\s*embed>/i";
29         $text = preg_replace($pattern, $replace, $text);
30         $pattern = "/<\s*iframe[^>]*>(.*?)<\s*\/\s*iframe>/i";
31         $text = preg_replace($pattern, $replace, $text);
32
33
34         echo str_replace("\t",'       ',$text);
35         echo "</section>";
36         echo "</body></html>\r\n";
37         killme();
38 }
39 }