summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php31
1 files changed, 4 insertions, 27 deletions
diff --git a/index.php b/index.php
index cca24ce..034133c 100644
--- a/index.php
+++ b/index.php
@@ -53,10 +53,10 @@ print_header("", "home");
Instructions for the transition from Arch Linux to Arch Linux 32 can be found <a href="/download">here</a>.
</p>
<p>
- Installation media which boot on x86_64 and i686 can be found <a href="https://mirror.archlinux32.org/archisos">here</a>.
+ Installation media which boot on i686 can be found <a href="https://mirror.archlinux32.org/archisos">here</a>.
</p>
<p>
- Join us on <a href="https://webchat.freenode.net/">#archlinux32</a> IRC channel on Freenode, check out our
+ Join us on <a href="ircs://irc.libera.chat/archlinux32">#archlinux32</a> IRC channel on Libera, check out our
<a href="https://bbs.archlinux32.org/" title="Arch 32 Forums">forums</a>
or subscribe to the <a href="https://lists.archlinux.org/listinfo/arch-ports"
title="Arch-Ports Mailing Lists">mailing list</a>
@@ -73,31 +73,8 @@ print_header("", "home");
<a href="https://bbs.archlinux32.org/extern.php?action=feed&fid=12&type=atom" title="Arch 32 News RSS Feed" class="rss-icon"><img width="16" height="16" src="/static/rss.c5ebdc5318d6.png" alt="RSS Feed" /></a>
<?php
-$news_reachable = apcu_fetch('news_reachable', $apcu_success);
-if ($apcu_success == false) {
- if (site_is_reachable('https://bbs.archlinux32.org/extern.php?action=feed&fid=12&type=atom'))
- $news_reachable = 'YES';
- else
- $news_reachable = 'NO';
- apcu_store('news_reachable', $news_reachable, 300);
-}
-if ($news_reachable == 'YES') {
- $ch = curl_init('https://bbs.archlinux32.org/extern.php?action=feed&fid=12&type=atom');
- curl_setopt($ch, CURLOPT_IPRESOLVE, CURL_IPRESOLVE_V4);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
- $news32 = curl_exec($ch);
- curl_close($ch);
- $news32 = simplexml_load_string($news32);
-} else {
- $news32 = false;
-}
-
-$ch = curl_init("https://www.archlinux.org/feeds/news/");
-curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
-$news64 = curl_exec($ch);
-curl_close($ch);
-$news64 = simplexml_load_string($news64);
+$news32 = get_news('news32', 'https://bbs.archlinux32.org/extern.php?action=feed&fid=12&type=atom', 300);
+$news64 = get_news('news64', 'https://archlinux.org/feeds/news/', 300);
$news = array();