Skip to content
Snippets Groups Projects
Commit 51e1ccc3 authored by Felix Paul Kühne's avatar Felix Paul Kühne
Browse files

index: remove twitter integration that was intentionally disabled server-side

parent 0ccce61a
No related branches found
No related tags found
No related merge requests found
Pipeline #333612 passed with stage
in 1 minute and 45 seconds
......@@ -265,27 +265,6 @@ include($_SERVER["DOCUMENT_ROOT"] . "/include/magpierss/rss_fetch.inc");
</a>
</span>
</h1>
<div lang=""><!-- tweets are often english, but some are french and we even retweeted arabic or similar, so the empty lang is intentional -->
<?php
$rss = @fetch_rss("https://www.videolan.org/_twitter/userrss.php?xrt=0&xrp=1&c=40");
if( is_object($rss) )
{
$i = 0;
$chars_per_entry = 240;
$entries_per_column = 5;
$columns = 1;
foreach ($rss->items as $item) {
echo '<p dir="ltr" style="border-bottom: 1px dashed #CCC;padding-bottom:5px;margin-bottom:5px; text-align: left;">';
echo preg_replace(array('^(http://\S+)^is', '^(https://\S+)^is'), '<a href="$1">$1</a>', str_replace("videolan:", "<b>" . date("Y-m-d h:i", strtotime($item['pubdate'])) . "</b>", $item['title']));
echo "</p>";
$i++;
if ($i >= $columns * $entries_per_column) break;
if ($i % $entries_per_column == 0) echo "</td><td>";
}
}
else echo "<p>Could not load RSS feed</p>";
?>
</div>
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment