#!/usr/bin/perl
# Copyright (C) 2000-2003 William R Thomas To the left is an example of what the sidebar will look similar to. If you wish to install this source into your sidebar, you can click the button below.
This installer will evaluate a RSS data source, and if it is valid give you a preview and allow you to install that source as a Mozilla Sidebar.
$msg
Or, rather than type a URL in above, you can choose from a number of my favorite RSS sources.
\n);
print qq(
\n);
print $page->end_html;
exit;
} else {
print "A valid url is of the form http://hostname/path/to/file, not $url\n);
print qq( \n);
print qq(\n);
print qq( \n);
$p1 = new XML::RSS;
print STDERR "$file\n";
eval { $p1->parsefile($tmppath."/".$file) };
$title = uri_unescape($p1->channel('title'));
print "Title: $title
\n";
print qq(\(Note if Title is empty, but the preview displays correctly please hit reload before installing. This is a small bug in the script which I am too lazy to fix.\)\n);
print "
Back to Sidebar Installer Start);
print qq(
\n";
}
}
if(! $page->param('url') ) {
print $page->header();
print $page->start_html(-title=>'Mozilla RSS Sidebar Installer',
-author=>'Corvar@theonering.net',
'bgcolor'=>'#FFFFFF');
}
print <
Tips on finding RSS Sources: There are a number of resources to find the URL of the RSS sources you are looking for. The above list is short and highly subjective (i.e. what I am interested in). If you are looking for a RSS feed of a different nature, try XMLTree and my.userland.com (Userland requires you to register). The more people who add a particular feed, the more likely I will add a direct link to the feed.
The author, Corvar, welcomes comments.
This script owes quite a bit to the work of DJ Adams on his mysidebar.pl script. EO_FORM exit;