tagcloud.php 459 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<?

require_once('database.php');
require_once('templating.php');
require_once('data/sanitize.php');
require_once('data/Server.php');
require_once('data/TagCloud.php');

$n=$_GET['n'];

$n=(int)$n;

if ($n < 1) {

$n=1000000;

}

	try {
		$aTagCloud = TagCloud::GenerateTagCloud('free_scrobbles', 'artist', $n);
	$smarty->assign('tagcloud', $aTagCloud);		
	} catch (exception $e) {}

	$smarty->assign('errors', $errors);
	$smarty->display('tagcloud.tpl');

?>