37 lines
766 B
PHP
37 lines
766 B
PHP
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Untitled Document</title>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php
|
|
|
|
function getFeed($feed_url) {
|
|
|
|
$content = file_get_contents($feed_url);
|
|
$x = new SimpleXmlElement($content);
|
|
|
|
echo "<ul>";
|
|
$y=1;
|
|
foreach($x->channel->item as $entry) {
|
|
if ($y < 4){
|
|
echo "<li><a href='$entry->link' title='$entry->title'>" . $entry->title . "</a>";
|
|
echo "<p>".$entry->description."</p>";
|
|
$theurl=str_replace("https://www.thebatorblog.com","https://thebator.r.worldssl.net",$entry->url);
|
|
echo "<p><img src='".$theurl."'/></p>";
|
|
echo "</li>";
|
|
$y=$y+1;
|
|
}
|
|
}
|
|
echo "</ul>";
|
|
}
|
|
|
|
getFeed("https://www.thebatorblog.com/feed/");
|
|
|
|
?>
|
|
</body>
|
|
</html>
|