<?php
defined (
'main'
)
or
die
(
'no direct access'
);
$title
=
$allgAr
[
'title'
];
$hmenu
=
'RSS - Liste'
;
$design
=
new
design (
$title
,
$hmenu
);
$design
->header();
$number
=
'6'
;
$ch
= curl_init();
curl_setopt(
$ch
, CURLOPT_URL,
$url1
);
curl_setopt (
$ch
, CURLOPT_RETURNTRANSFER, 1);
$content
= curl_exec (
$ch
);
curl_close (
$ch
);
$xml
=
new
SimpleXMLElement(
$content
);
echo
'<b>N 24</b>
<ul type=
"square"
>';
$i
= 0;
foreach
(
$xml
->channel->item
as
$entry
){
if
(
$i
>=
$number
) {
break
;
}
else
{
$dates
=
strtotime
(
$entry
->pubDate);
$date
=
date
(
'd.m.Y'
,
$dates
);
$namespaces
=
$entry
->getNameSpaces(true);
$dc
=
$entry
->children(
$namespaces
[
'dc'
]);
$titlename
= utf8_decode(
$entry
->title);
echo
'<li> '
.
$date
.
': <b><a class="box" href="'
.
$entry
->link .
'" title="'
. utf8_decode(
$entry
->title) .
'" target="_blank">'
.((
strlen
(
$titlename
)<35) ?
$titlename
:
substr
(
$titlename
,0,35).
'...'
).
'</a></b></li>'
;
$i
++;
}
}
echo
'</ul><br>'
;
$ch
= curl_init();
curl_setopt(
$ch
, CURLOPT_URL,
$url2
);
curl_setopt (
$ch
, CURLOPT_RETURNTRANSFER, 1);
$content
= curl_exec (
$ch
);
curl_close (
$ch
);
$xml
=
new
SimpleXMLElement(
$content
);
echo
'<b>FaceComNews</b>
<ul type=
"square"
>';
$i
= 0;
foreach
(
$xml
->channel->item
as
$entry
){
if
(
$i
>=
$number
) {
break
;
}
else
{
$dates
=
strtotime
(
$entry
->pubDate);
$date
=
date
(
'd.m.Y'
,
$dates
);
$namespaces
=
$entry
->getNameSpaces(true);
$dc
=
$entry
->children(
$namespaces
[
'dc'
]);
$titlename
= utf8_decode(
$entry
->title);
echo
'<li> '
.
$date
.
': <b><a class="box" href="'
.
$entry
->link .
'" title="'
. utf8_decode(
$entry
->title) .
'" target="_blank">'
.((
strlen
(
$titlename
)<35) ?
$titlename
:
substr
(
$titlename
,0,35).
'...'
).
'</a></b></li>'
;
$i
++;
}
}
echo
'</ul><br>'
;
$ch
= curl_init();
curl_setopt(
$ch
, CURLOPT_URL,
$url3
);
curl_setopt (
$ch
, CURLOPT_RETURNTRANSFER, 1);
$content
= curl_exec (
$ch
);
curl_close (
$ch
);
$xml
=
new
SimpleXMLElement(
$content
);
echo
'<b>SingleLoveNews</b>
<ul type=
"square"
>';
$i
= 0;
foreach
(
$xml
->channel->item
as
$entry
){
if
(
$i
>=
$number
) {
break
;
}
else
{
$dates
=
strtotime
(
$entry
->pubDate);
$date
=
date
(
'd.m.Y'
,
$dates
);
$namespaces
=
$entry
->getNameSpaces(true);
$dc
=
$entry
->children(
$namespaces
[
'dc'
]);
$titlename
= utf8_decode(
$entry
->title);
echo
'<li> '
.
$date
.
': <b><a class="box" href="'
.
$entry
->link .
'" title="'
. utf8_decode(
$entry
->title) .
'" target="_blank">'
.((
strlen
(
$titlename
)<35) ?
$titlename
:
substr
(
$titlename
,0,35).
'...'
).
'</a></b></li>'
;
$i
++;
}
}
echo
'</ul><br>'
;
$ch
= curl_init();
curl_setopt(
$ch
, CURLOPT_URL,
$url4
);
curl_setopt (
$ch
, CURLOPT_RETURNTRANSFER, 1);
$content
= curl_exec (
$ch
);
curl_close (
$ch
);
$xml
=
new
SimpleXMLElement(
$content
);
echo
'<b>Sachsen-Spion</b>
<ul type=
"square"
>';
$i
= 0;
foreach
(
$xml
->channel->item
as
$entry
){
if
(
$i
>=
$number
) {
break
;
}
else
{
$dates
=
strtotime
(
$entry
->pubDate);
$date
=
date
(
'd.m.Y'
,
$dates
);
$namespaces
=
$entry
->getNameSpaces(true);
$dc
=
$entry
->children(
$namespaces
[
'dc'
]);
$titlename
= utf8_decode(
$entry
->title);
echo
'<li> '
.
$date
.
': <b><a class="box" href="'
.
$entry
->link .
'" title="'
. utf8_decode(
$entry
->title) .
'" target="_blank">'
.((
strlen
(
$titlename
)<35) ?
$titlename
:
substr
(
$titlename
,0,35).
'...'
).
'</a></b></li>'
;
$i
++;
}
}
echo
'</ul>'
;
$design
->footer();
?>