[www-doc] [Git][VideoLAN.org/websites][master] index: remove twitter integration that was intentionally disabled server-side
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Mon Apr 17 09:46:04 UTC 2023
Felix Paul Kühne pushed to branch master at VideoLAN organization / websites
Commits:
51e1ccc3 by Felix Paul Kühne at 2023-04-17T11:45:53+02:00
index: remove twitter integration that was intentionally disabled server-side
- - - - -
1 changed file:
- www.videolan.org/index.php
Changes:
=====================================
www.videolan.org/index.php
=====================================
@@ -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>
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/51e1ccc34a465e78ddb9fe9102226208e599f0a4
--
View it on GitLab: https://code.videolan.org/VideoLAN.org/websites/-/commit/51e1ccc34a465e78ddb9fe9102226208e599f0a4
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the www-doc
mailing list