* @copyright 2001 - 2011 Ampache.org * @license http://opensource.org/licenses/gpl-2.0 GPLv2 * @version PHP 5.2 * @link http://www.ampache.org/ * @since File available since Release 1.0 */ /* Define the time places starting at 0 */ $time_unit = array('',_('seconds ago'),_('minutes ago'),_('hours ago'),_('days ago'),_('weeks ago'),_('months ago'),_('years ago')); $link = Config::get('use_rss') ? ' ' . AmpacheRSS::get_display('recently_played') : ''; show_box_top(_('Recently Played') . $link); ?> = 1) { $final = $amount; $time_place++; if ($time_place <= 2) { $amount = floor($amount/60); } if ($time_place == '3') { $amount = floor($amount/24); } if ($time_place == '4') { $amount = floor($amount/7); } if ($time_place == '5') { $amount = floor($amount/4); } if ($time_place == '6') { $amount = floor ($amount/12); } if ($time_place > '6') { $final = $amount . '+'; break; } } $time_string = $final . ' ' . $time_unit[$time_place]; $song->format(); ?>
id,'add',_('Add'),'add_' . $song->id); ?> f_link; ?> f_album_link; ?> f_artist_link; ?> fullname); ?>