summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2012-11-01 16:57:35 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2012-11-01 16:57:35 +0100
commit018a1d10794ee2a7d9c0487ce7c0aa1050f6c9a4 (patch)
tree7c70170f2f3a7cddd43a38360387411fba51f00d
parenta77ab8799cb33cd378e83c3a5905c8c3eb4c08b8 (diff)
parentc32dfe9802a26415213ab611a2ff8f142a2db134 (diff)
Merge branch 'master' into navigation
-rw-r--r--3rdparty/SimplePie/autoloader.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie.php97
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Author.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Cache.php15
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Cache/Base.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Cache/DB.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Cache/File.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Cache/Memcache.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Cache/MySQL.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Caption.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Category.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Content/Type/Sniffer.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Copyright.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Core.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Credit.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Decode/HTML/Entities.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Enclosure.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/File.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/HTTP/Parser.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/IRI.php10
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Item.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Locator.php47
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Misc.php17
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Net/IPv6.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Parse/Date.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Parser.php10
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Rating.php2
-rwxr-xr-x3rdparty/SimplePie/library/SimplePie/Registry.php18
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Restriction.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Sanitize.php15
-rw-r--r--3rdparty/SimplePie/library/SimplePie/Source.php3
-rw-r--r--3rdparty/SimplePie/library/SimplePie/XML/Declaration/Parser.php2
-rw-r--r--3rdparty/SimplePie/library/SimplePie/gzdecode.php2
-rw-r--r--appinfo/app.php4
-rw-r--r--controllers/controller.php151
-rw-r--r--controllers/news.controller.php23
-rw-r--r--css/news.css61
-rw-r--r--index.php16
-rw-r--r--js/items.js1
-rw-r--r--js/menu.js9
-rw-r--r--js/settings.js5
-rw-r--r--l10n/ar.php9
-rw-r--r--l10n/bg_BG.php8
-rw-r--r--l10n/ca.php3
-rw-r--r--l10n/cs_CZ.php3
-rw-r--r--l10n/da.php3
-rw-r--r--l10n/de.php3
-rw-r--r--l10n/de_DE.php13
-rw-r--r--l10n/el.php3
-rw-r--r--l10n/eo.php4
-rw-r--r--l10n/es.php3
-rw-r--r--l10n/es_AR.php3
-rw-r--r--l10n/et_EE.php12
-rw-r--r--l10n/eu.php4
-rw-r--r--l10n/fa.php13
-rw-r--r--l10n/fi_FI.php6
-rw-r--r--l10n/fr.php3
-rw-r--r--l10n/gl.php4
-rw-r--r--l10n/he.php11
-rw-r--r--l10n/hr.php11
-rw-r--r--l10n/hu_HU.php13
-rw-r--r--l10n/ia.php9
-rw-r--r--l10n/id.php11
-rw-r--r--l10n/it.php5
-rw-r--r--l10n/ja_JP.php3
-rw-r--r--l10n/ka_GE.php11
-rw-r--r--l10n/ko.php12
-rw-r--r--l10n/ku_IQ.php2
-rw-r--r--l10n/lb.php11
-rw-r--r--l10n/lt_LT.php9
-rw-r--r--l10n/lv.php7
-rw-r--r--l10n/mk.php12
-rw-r--r--l10n/ms_MY.php12
-rw-r--r--l10n/nb_NO.php30
-rw-r--r--l10n/nl.php3
-rw-r--r--l10n/nn_NO.php9
-rw-r--r--l10n/oc.php9
-rw-r--r--l10n/pl.php3
-rw-r--r--l10n/pl_PL.php3
-rw-r--r--l10n/pt_BR.php3
-rw-r--r--l10n/pt_PT.php3
-rw-r--r--l10n/ro.php5
-rw-r--r--l10n/ru.php3
-rw-r--r--l10n/ru_RU.php3
-rw-r--r--l10n/si_LK.php19
-rw-r--r--l10n/sk_SK.php3
-rw-r--r--l10n/sl.php3
-rw-r--r--l10n/sr.php7
-rw-r--r--l10n/sr@latin.php5
-rw-r--r--l10n/sv.php3
-rw-r--r--l10n/ta_LK.php10
-rw-r--r--l10n/th_TH.php4
-rw-r--r--l10n/tr.php13
-rw-r--r--l10n/uk.php9
-rw-r--r--l10n/vi.php6
-rw-r--r--l10n/zh_CN.GB2312.php3
-rw-r--r--l10n/zh_CN.php3
-rw-r--r--l10n/zh_TW.php12
-rw-r--r--lib/feedtypes.php1
-rw-r--r--lib/itemmapper.php17
-rw-r--r--lib/serve.php96
-rw-r--r--lib/share/item.php44
l---------news1
-rw-r--r--templates/main.php2
-rw-r--r--templates/part.feeds.php11
-rw-r--r--templates/part.items.php3
-rw-r--r--templates/part.listfolder.php1
-rw-r--r--templates/part.shared.php68
108 files changed, 1008 insertions, 206 deletions
diff --git a/3rdparty/SimplePie/autoloader.php b/3rdparty/SimplePie/autoloader.php
index 9fb7be586..c16a8f8b5 100644
--- a/3rdparty/SimplePie/autoloader.php
+++ b/3rdparty/SimplePie/autoloader.php
@@ -33,7 +33,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* @package SimplePie
- * @version 1.3
+ * @version 1.3.1
* @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
* @author Ryan Parman
* @author Geoffrey Sneddon
diff --git a/3rdparty/SimplePie/library/SimplePie.php b/3rdparty/SimplePie/library/SimplePie.php
index 5042f6b1a..b33c635f1 100644
--- a/3rdparty/SimplePie/library/SimplePie.php
+++ b/3rdparty/SimplePie/library/SimplePie.php
@@ -33,7 +33,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* @package SimplePie
- * @version 1.3
+ * @version 1.3.1
* @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
* @author Ryan Parman
* @author Geoffrey Sneddon
@@ -50,7 +50,7 @@ define('SIMPLEPIE_NAME', 'SimplePie');
/**
* SimplePie Version
*/
-define('SIMPLEPIE_VERSION', '1.3');
+define('SIMPLEPIE_VERSION', '1.3.1');
/**
* SimplePie Build
@@ -636,7 +636,19 @@ class SimplePie
if (func_num_args() > 0)
{
- trigger_error('Passing parameters to the constructor is no longer supported. Please use set_feed_url(), set_cache_location(), and set_cache_location() directly.');
+ $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_WARNING;
+ trigger_error('Passing parameters to the constructor is no longer supported. Please use set_feed_url(), set_cache_location(), and set_cache_location() directly.', $level);
+
+ $args = func_get_args();
+ switch (count($args)) {
+ case 3:
+ $this->set_cache_duration($args[2]);
+ case 2:
+ $this->set_cache_location($args[1]);
+ case 1:
+ $this->set_feed_url($args[0]);
+ $this->init();
+ }
}
}
@@ -1263,7 +1275,7 @@ class SimplePie
// Decide whether to enable caching
if ($this->cache && $parsed_feed_url['scheme'] !== '')
{
- $cache = $this->registry->call('Cache', 'create', array($this->cache_location, call_user_func($this->cache_name_function, $this->feed_url), 'spc'));
+ $cache = $this->registry->call('Cache', 'get_handler', array($this->cache_location, call_user_func($this->cache_name_function, $this->feed_url), 'spc'));
}
// Fetch the data via SimplePie_File into $this->raw_data
@@ -1500,10 +1512,20 @@ class SimplePie
{
// We need to unset this so that if SimplePie::set_file() has been called that object is untouched
unset($file);
- if (!($file = $locate->find($this->autodiscovery, $this->all_discovered_feeds)))
+ try
+ {
+ if (!($file = $locate->find($this->autodiscovery, $this->all_discovered_feeds)))
+ {
+ $this->error = "A feed could not be found at $this->feed_url. A feed with an invalid mime type may fall victim to this error, or " . SIMPLEPIE_NAME . " was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed.";
+ $this->registry->call('Misc', 'error', array($this->error, E_USER_NOTICE, __FILE__, __LINE__));
+ return false;
+ }
+ }
+ catch (SimplePie_Exception $e)
{
- $this->error = "A feed could not be found at $this->feed_url. A feed with an invalid mime type may fall victim to this error, or " . SIMPLEPIE_NAME . " was unable to auto-discover it.. Use force_feed() if you are certain this URL is a real feed.";
- $this->registry->call('Misc', 'error', array($this->error, E_USER_NOTICE, __FILE__, __LINE__));
+ // This is usually because DOMDocument doesn't exist
+ $this->error = $e->getMessage();
+ $this->registry->call('Misc', 'error', array($this->error, E_USER_NOTICE, $e->getFile(), $e->getLine()));
return false;
}
if ($cache)
@@ -1513,7 +1535,7 @@ class SimplePie
{
trigger_error("$this->cache_location is not writeable. Make sure you've set the correct relative or absolute path, and that the location is server-writable.", E_USER_WARNING);
}
- $cache = $this->registry->call('Cache', 'create', array($this->cache_location, call_user_func($this->cache_name_function, $file->url), 'spc'));
+ $cache = $this->registry->call('Cache', 'get_handler', array($this->cache_location, call_user_func($this->cache_name_function, $file->url), 'spc'));
}
$this->feed_url = $file->url;
}
@@ -2902,6 +2924,65 @@ class SimplePie
}
/**
+ * Set the favicon handler
+ *
+ * @deprecated Use your own favicon handling instead
+ */
+ public function set_favicon_handler($page = false, $qs = 'i')
+ {
+ $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_WARNING;
+ trigger_error('Favicon handling has been removed, please use your own handling', $level);
+ return false;
+ }
+
+ /**
+ * Get the favicon for the current feed
+ *
+ * @deprecated Use your own favicon handling instead
+ */
+ public function get_favicon()
+ {
+ $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_WARNING;
+ trigger_error('Favicon handling has been removed, please use your own handling', $level);
+
+ if (($url = $this->get_link()) !== null)
+ {
+ return 'http://g.etfv.co/' . urlencode($url);
+ }
+
+ return false;
+ }
+
+ /**
+ * Magic method handler
+ *
+ * @param string $method Method name
+ * @param array $args Arguments to the method
+ * @return mixed
+ */
+ public function __call($method, $args)
+ {
+ if (strpos($method, 'subscribe_') === 0)
+ {
+ $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_WARNING;
+ trigger_error('subscribe_*() has been deprecated, implement the callback yourself', $level);
+ return '';
+ }
+ if ($method === 'enable_xml_dump')
+ {
+ $level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_WARNING;
+ trigger_error('enable_xml_dump() has been deprecated, use get_raw_data() instead', $level);
+ return false;
+ }
+
+ $class = get_class($this);
+ $trace = debug_backtrace();
+ $file = $trace[0]['file'];
+ $line = $trace[0]['line'];
+ trigger_error("Call to undefined method $class::$method() in $file on line $line", E_USER_ERROR);
+ }
+
+ /**
* Sorting callback for items
*
* @access private
diff --git a/3rdparty/SimplePie/library/SimplePie/Author.php b/3rdparty/SimplePie/library/SimplePie/Author.php
index ac274ecbf..bbf3812ff 100644
--- a/3rdparty/SimplePie/library/SimplePie/Author.php
+++ b/3rdparty/SimplePie/library/SimplePie/Author.php
@@ -33,7 +33,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*
* @package SimplePie
- * @version 1.3
+ * @version 1.3.1
* @copyright 2004-2012 Ryan Parman, Geoffrey Sneddon, Ryan McCue
* @author Ryan Parman
* @author Geoffrey Sneddon
@@ -154,3 +154,4 @@ class SimplePie_Author
}
}
}
+
diff --git a/3rdparty/SimplePie/library/SimplePie/Cache.php