From a01b355a79ff6bcfd41fde432559547021cf407f Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 11 Feb 2019 15:09:47 +0100 Subject: index.php: show news --- index.php | 208 ++++++++++++++++++-------------------------------------------- 1 file changed, 61 insertions(+), 147 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 1c9709c..607dd9e 100644 --- a/index.php +++ b/index.php @@ -41,157 +41,71 @@ print_header("", "home");

- Latest News (to be implemented) + Latest News

RSS Feed - libutf8proc>=2.1.1-3 update requires manual intervention - -

2018-07-14

-
-

The libutf8proc package prior to version 2.1.1-3 had an incorrect soname link. This has been fixed in 2.1.1-3, so the upgrade will need to overwrite the untracked soname link created by ldconfig. If you get an error

-

libutf8proc: /usr/lib/libutf8proc.so.2 exists in filesystem

-

when updating, use

-

pacman -Suy --overwrite usr/lib/libutf8proc.so.2

-

to perform the upgrade.

- -
- -

- js52 52.7.3-2 upgrade requires intervention -

-

2018-05-04

-
-

Due to the SONAME of /usr/lib/libmozjs-52.so not matching its file name, ldconfig created an untracked file /usr/lib/libmozjs-52.so.0. This is now fixed and both files are present in the package.

-

To pass the upgrade, remove /usr/lib/libmozjs-52.so.0 prior to upgrading.

-
- -

- glibc 2.27-2 and pam 1.3.0-2 may require manual intervention -

-

2018-04-20

-
-

The new version of glibc removes support for NIS and NIS+. The default -/etc/nsswitch.conf file provided by filesystem package already -reflects this change. Please make sure to merge pacnew file if it exists -prior to upgrade.

-

NIS functionality can still be enabled by installing libnss_nis -package. There is no replacement for NIS+ in the official repositories.

-

pam 1.3.0-2 no longer ships pam_unix2 module and pam_unix_*.so -compatibility symlinks. Before upgrading, review PAM configuration files -in the /etc/pam.d directory and replace removed modules with -pam_unix.so. Users of pam_unix2 should also reset their passwords -after ...

-
- -

- zita-resampler 1.6.0-1 -> 2 update requires manual intervention -

-

2018-02-22

-
-

The zita-resampler 1.6.0-1 package was missing a library symlink that has been readded in 1.6.0-2. If you installed 1.6.0-1, ldconfig would have created this symlink at install time, and it will conflict with the one included in 1.6.0-2. In that case, remove /usr/lib/libzita-resampler.so.1 manually before updating.

-
- -

- The end of i686 support -

-

2017-11-08

-
-

Following 9 months of deprecation period, support for the i686 -architecture effectively ends today. By the end of November, i686 -packages will be removed from our mirrors and later from the packages -archive. The [multilib] repository is not affected.

-

For users unable to upgrade their hardware to x86_64, an alternative is -a community maintained fork named Arch Linux 32. See their website -for details on migrating existing installations.

-
- -

- Older News - -

-
- -
2017-09-02
-
- Perl library path change -
- - -
2017-05-15
-
- Deprecation of ABS tool and rsync endpoint -
- - -
2017-03-15
-
- ca-certificates-utils 20170307-1 upgrade requires manual intervention -
- - -
2017-02-27
-
- mesa with libglvnd support is now in testing -
- - -
2017-01-25
-
- Phasing out i686 support -
- - -
2017-01-14
-
- xorg-server 1.19.1 is now in extra -
- - -
2016-12-30
-
- OpenVPN 2.4.0 update requires administrative interaction -
- - -
2016-10-31
-
- ttf-dejavu 2.37 will require forced upgrade -
- - -
2016-08-06
-
- TeXLive 2016 packages are now available -
- - -
2016-07-18
-
- test-sec-flags: Call for Assistance -
-
-*/ + +$news = simplexml_load_string( + file_get_contents("https://news.archlinux32.org/rss.php") +); + +if ($news === false) { + + print "

\n"; + print " sorry, news are currently unavailable\n"; + print "

\n"; + +} else { + + $news_count = -5; + foreach($news -> entry as $entry) { + $news_count ++; + if ($news_count == 0) { + print "

\n"; + print " Older News\n"; + print " \n"; + print "

\n"; + print "
\n"; + } + if ($news_count < 0) { + print "

\n"; + print " {'link'} -> attributes() -> {'href'}; + print "\" title=\"View full article: "; + print $entry -> title; + print "\">"; + print $entry -> title; + print "\n"; + print "

\n"; + print "

\n"; + print " " . explode('T', $entry -> published)[0] . "\n"; + print "

\n"; + print "
\n"; + print $entry -> content; + print "
\n"; + } else { + print "
"; + print explode('T', $entry -> published)[0]; + print "
\n"; + print "
\n"; + print " {'link'} -> attributes() -> {'href'}; + print "\" title=\"View full article: "; + print $entry -> title; + print "\">"; + print $entry -> title; + print "\n"; + print "
\n"; + } + } + if ($news_count >= 0) { + print "
\n"; + } + +} + ?>
-- cgit v1.2.3