]> git.mxchange.org Git - friendica.git/blob - mod/update_network.php
atom auto-discover, fix image preloading in ajax
[friendica.git] / mod / update_network.php
1 <?php
2
3 // See update_profile.php for documentation
4
5 require_once('mod/network.php');
6
7
8 function update_network_content(&$a) {
9
10         header("Content-type: text/html");
11         echo "<!DOCTYPE html><html><body>\r\n";
12         echo (($_GET['msie'] == 1) ? '<div>' : '<section>');
13
14
15         $text = network_content($a,true);
16         $pattern = "/<img([^>]*) src=\"([^\"]*)\"/";
17         $replace = "<img\${1} dst=\"\${2}\"";
18         $text = preg_replace($pattern, $replace, $text);
19
20         echo str_replace("\t",'       ',$text);
21         echo (($_GET['msie'] == 1) ? '</div>' : '</section>');
22         echo "</body></html>\r\n";
23         killme();
24
25 }