<?php
// G

	require_once './commonRSS.inc';
	
	$options = new NewsOptions(
		array(	'charset'=>'UTF-8',
			'timeout'=>5,
			'labelheight'=>20,
			'labelwidth'=>160,
			'maxitem'=>5,
			'blockimagelabel'=>TRUE,
			'descriptionlength'=>100,
			'backwardtime'=>TRUE,// ԕ\tZ
			'sort'=>TRUE,// ŐVLԏ
		)
	);
	$method = 'readCache';
	if ( $argv[1] == 'cron' ) {
		$method = 'createCache';
	}
	
	// ォ炢łʂɃvpeBύX\
	$options->labelsubstitute = "Classical Music(Technorati)";
	$rss = new News( $options );
	$rss->$method( 'http://www.technorati.com/watchlists/rss.html?wid=247202' );
	if ( $method == 'readCache' )
		$rss->show();
	
	$options->maxitem = 10;
	$options->labelsubstitute = "Small Business(Technorati)";
	$rss->$method( 'http://www.technorati.com/watchlists/rss.html?wid=243572' );
	if ( $method == 'readCache' )
		$rss->show();
?>
