]> git.mxchange.org Git - friendica.git/blob - mod/update_network.php
relocated "follow" url scraping code so it can be used elsewhere (contact repair...
[friendica.git] / mod / update_network.php
1 <?php
2
3 // See update_profile.php for documentation
4
5 require_once('mod/network.php');
6 require_once('include/group.php');
7
8 function update_network_content(&$a) {
9
10         $profile_uid = intval($_GET['p']);
11
12         header("Content-type: text/html");
13         echo "<!DOCTYPE html><html><body>\r\n";
14         echo (($_GET['msie'] == 1) ? '<div>' : '<section>');
15
16
17         $text = network_content($a,$profile_uid);
18         $pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
19         $replace = "<img\${1} dst=\"\${2}\"";
20         $text = preg_replace($pattern, $replace, $text);
21
22         echo str_replace("\t",'       ',$text);
23         echo (($_GET['msie'] == 1) ? '</div>' : '</section>');
24         echo "</body></html>\r\n";
25         killme();
26
27 }