<?php header('Content-Type: text/html; charset=utf-8'); if (!ini_get('date.timezone')) { date_default_timezone_set('Europe/Prague'); } require_once 'feed.class.php'; $atom = Feed::loadAtom('http://phpfashion.com/feed/atom'); ?> <h1><?php echo htmlSpecialChars($atom->title); ?> </h1> <?php foreach ($atom->entry as $entry) { ?> <h2><a href="<?php echo htmlSpecialChars($entry->link['href']); ?> "><?php echo htmlSpecialChars($entry->title); ?> </a> <small><?php echo date("j.n.Y H:i", (int) $entry->timestamp); ?> </small></h2> <?php
$description = str_replace('<a href="', '<a href="https://earthbot.net/', $item->description); $description = str_replace('<img src=', '<img src="https://earthbot.net/', $description); $description = str_replace('https://earthbot.net/http', 'http', $description); $description = str_replace('https://earthbot.net//', 'https://earthbot.net/', $description); $description = str_replace('https://earthbot.net/"/files', 'https://earthbot.net/files', $description); $description = str_replace('https://earthbot.net/"/thumbs', 'https://earthbot.net/thumbs', $description); echo '<h4>'; echo $item->title; echo '</h4>'; echo '<br>'; echo $description; echo '<hr>'; } echo '</div>'; $url = "https://github.com/aerth.atom"; $atom = Feed::loadAtom($url); //include ('thatfunk/fakefeed.txt'); echo '<div class="large-6 small-6 columns" style="padding-left: 1px; padding-right: 1px;margin-right: 0px;margin-left: 0px;">'; //echo 'Link: ', $atom->link; echo '<h2>aerth\'s Github Log</h2><p><a href="https://github.com/aerth">View on Github</a><hr>'; foreach ($atom->entry as $item) { $description = str_replace('<a href="', '<a href="https://github.com/', $item->content); $description = str_replace('https://github.com/http', 'http', $description); $description = str_replace('https://github.com//', 'https://github.com/', $description); echo '<h4>'; echo $item->title; echo '</h4>'; echo '<br>'; echo $description; echo '<hr>'; }
<?php header('Content-Type: text/html; charset=utf-8'); if (!ini_get('date.timezone')) { date_default_timezone_set('Europe/Prague'); } require_once 'src/feed.class.php'; $atom = Feed::loadAtom('http://php.vrana.cz/atom.php'); ?> <h1><?php echo htmlSpecialChars($atom->title); ?> </h1> <?php foreach ($atom->entry as $entry) { ?> <h2><a href="<?php echo htmlSpecialChars($entry->link['href']); ?> "><?php echo htmlSpecialChars($entry->title); ?> </a> <small><?php echo date("j.n.Y H:i", (int) $entry->timestamp); ?> </small></h2> <?php