From 8cb92d1551b08bef554052b84a2457b5807bc87a Mon Sep 17 00:00:00 2001
From: Penny Leach ' . "\n";
foreach ($data->content as $item) {
- echo '
' . "\n";
diff --git a/comp/flickr.php b/comp/flickr.php
index 329b639..ae7cdc7 100644
--- a/comp/flickr.php
+++ b/comp/flickr.php
@@ -15,10 +15,10 @@ function comp_flickr() {
// no nice formatting here, whtespace fucks the browser
echo "\n";
foreach ((array)$photos['photo'] as $photo) {
- echo "";
- echo "buildPhotoURL($photo, "Square") . ">";
- echo "";
+ echo '';
+ echo '
buildPhotoURL($photo, 'Square') . '" />';
+ echo '';
$i++;
}
echo "\n";
diff --git a/comp/lastfm.php b/comp/lastfm.php
index 800f200..948641b 100644
--- a/comp/lastfm.php
+++ b/comp/lastfm.php
@@ -5,7 +5,7 @@ function comp_lastfm() {
if ($data = parse_rss('http://ws.audioscrobbler.com/1.0/user/' . get_config('lastfm_username') . '/recenttracks.rss')) {
echo '
' . "\n";
foreach ($data->content as $item) {
- echo '
' . "\n";
diff --git a/comp/twitter.php b/comp/twitter.php
index 4dab86a..63b7866 100644
--- a/comp/twitter.php
+++ b/comp/twitter.php
@@ -5,7 +5,7 @@ function comp_twitter() {
if ($data = parse_rss('http://twitter.com/statuses/user_timeline/' . get_config('twitter_username') . '.rss')) {
echo ' ' . "\n";
foreach ($data->content as $item) {
- echo '
' . "\n";
diff --git a/include/main.inc b/include/main.inc
index 54a6022..8495d67 100644
--- a/include/main.inc
+++ b/include/main.inc
@@ -26,5 +26,5 @@ ksort($whorepile);
?>. christ. at least I never got livejournal.
I don't have an rss feed for this mashup. use friendfeed instead, or an individual site's feed.
thanks to vex for the vserver
- On my mind: mahara, more tattoos, less tattoos, moodle gsoc, Europe diff --git a/lib/general.php b/lib/general.php index fab6aa5..f11df08 100644 --- a/lib/general.php +++ b/lib/general.php @@ -88,4 +88,9 @@ function parse_rss($url) { } return $data; } + +function hsc($str) { + return htmlspecialchars($str, ENT_COMPAT, 'UTF-8'); +} + ?> diff --git a/style.css b/style.css index 47336bd..51ef487 100644 --- a/style.css +++ b/style.css @@ -66,6 +66,7 @@ div#flickr { } div#flickr img { margin:5px; + border:0px; } div#main { -- 2.39.5