diff options
author | friendica <info@friendica.com> | 2014-03-27 15:35:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-03-27 15:35:29 -0700 |
commit | a0674af4169a8c929c89887d4e7796b21ee55a91 (patch) | |
tree | 1b3e673a0acbbf07377871c5c09015fc2abf44ba /mod/update_community.php | |
parent | 7b24b78af949f2645459e4698ee2f96a17becef4 (diff) | |
download | volse-hubzilla-a0674af4169a8c929c89887d4e7796b21ee55a91.tar.gz volse-hubzilla-a0674af4169a8c929c89887d4e7796b21ee55a91.tar.bz2 volse-hubzilla-a0674af4169a8c929c89887d4e7796b21ee55a91.zip |
firehose fixes and optimisations. In particular get rid of the unresponsive script warning when trying to load updates (sine they aren't our posts, we can't check for unseen, hence we can't really load updates). Also make the url selection pluggable.
Diffstat (limited to 'mod/update_community.php')
-rw-r--r-- | mod/update_community.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/mod/update_community.php b/mod/update_community.php deleted file mode 100644 index 3dcbce6b1..000000000 --- a/mod/update_community.php +++ /dev/null @@ -1,33 +0,0 @@ -<?php - -// See update_profile.php for documentation - -require_once('mod/community.php'); - -function update_community_content(&$a) { - - header("Content-type: text/html"); - echo "<!DOCTYPE html><html><body>\r\n"; - echo (($_GET['msie'] == 1) ? '<div>' : '<section>'); - - $text = community_content($a,true); - $pattern = "/<img([^>]*) src=\"([^\"]*)\"/"; - $replace = "<img\${1} dst=\"\${2}\""; - $text = preg_replace($pattern, $replace, $text); - - $replace = '<br />' . t('[Embedded content - reload page to view]') . '<br />'; - $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 (($_GET['msie'] == 1) ? '</div>' : '</section>'); - echo "</body></html>\r\n"; - killme(); - -}
\ No newline at end of file |