librefm-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Librefm-commits] [1678] undo that breakage


From: Clint Adams
Subject: [Librefm-commits] [1678] undo that breakage
Date: Sun, 17 May 2009 00:54:38 +0000

Revision: 1678
          http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1678
Author:   clint
Date:     2009-05-17 00:54:38 +0000 (Sun, 17 May 2009)
Log Message:
-----------
undo that breakage

Modified Paths:
--------------
    branches/stable/nixtape/index.php

Modified: branches/stable/nixtape/index.php
===================================================================
--- branches/stable/nixtape/index.php   2009-05-16 19:49:06 UTC (rev 1677)
+++ branches/stable/nixtape/index.php   2009-05-17 00:54:38 UTC (rev 1678)
@@ -23,15 +23,23 @@
 require_once('templating.php');
 require_once('data/sanitize.php');
 require_once('data/Server.php');
+require_once('data/TagCloud.php');
 
-$smarty->assign('welcome', true);
+$aTagCloud = TagCloud::GenerateTagCloud('Free_Scrobbles', 'artist');
+if ($aTagCloud) {
+       $smarty->assign('tagcloud', $aTagCloud);
+}
 
-$station = 'librefm://globaltags/rock';
-if(isset($this_user)) {
-       $radio_session = $this_user->getRadioSession($station);
-} else {
-       $radio_session = Server::getRadioSession($station);
+$aLastScrobbles = Server::getRecentScrobbles(20);
+if ($aLastScrobbles) {
+       $smarty->assign('recenttracks', $aLastScrobbles);
 }
-$smarty->assign('radio_session', $radio_session);
+
+$aNowPlaying = Server::getNowPlaying(10);
+if ($aNowPlaying) {
+       $smarty->assign('nowplaying', $aNowPlaying);
+}
+
+$smarty->assign('welcome', true);
 $smarty->display('welcome.tpl');
 ?>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]