aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-09 18:26:34 +0200
committerArthurHoaro <arthur@hoa.ro>2017-05-09 18:26:34 +0200
commit033cf2a1e5eca144098fa0a150ded97128f79305 (patch)
tree62f9f211c713c5c0a3cc7e1c28546e5d3eee946f /index.php
parentbf67ac345f588130e98e784b4ee4740b0dad83fc (diff)
downloadShaarli-033cf2a1e5eca144098fa0a150ded97128f79305.tar.gz
Shaarli-033cf2a1e5eca144098fa0a150ded97128f79305.tar.zst
Shaarli-033cf2a1e5eca144098fa0a150ded97128f79305.zip
PubSubHub: remove dead code
Diffstat (limited to 'index.php')
-rw-r--r--index.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/index.php b/index.php
index ab1e30da..468dd091 100644
--- a/index.php
+++ b/index.php
@@ -225,27 +225,6 @@ function setup_login_state($conf)
225} 225}
226$userIsLoggedIn = setup_login_state($conf); 226$userIsLoggedIn = setup_login_state($conf);
227 227
228/**
229 * PubSubHubbub protocol support (if enabled) [UNTESTED]
230 * (Source: http://aldarone.fr/les-flux-rss-shaarli-et-pubsubhubbub/ )
231 *
232 * @param ConfigManager $conf Configuration Manager instance.
233 */
234function pubsubhub($conf)
235{
236 $pshUrl = $conf->get('config.PUBSUBHUB_URL');
237 if (!empty($pshUrl))
238 {
239 include_once './publisher.php';
240 $p = new Publisher($pshUrl);
241 $topic_url = array (
242 index_url($_SERVER).'?do=atom',
243 index_url($_SERVER).'?do=rss'
244 );
245 $p->publish_update($topic_url);
246 }
247}
248
249// ------------------------------------------------------------------------------------------ 228// ------------------------------------------------------------------------------------------
250// Session management 229// Session management
251 230