Exemplo n.º 1
0
    }
    if ($params->get('bytes_downloaded')) {
        echo '<div id="value-center"><b>&nbsp;' . JText::_('COM_TRACKER_STATS_DOWNLOADED_DATA') . '&nbsp;</b></div>';
    }
    if ($params->get('bytes_uploaded')) {
        echo '<div id="value-center"><b>&nbsp;' . JText::_('COM_TRACKER_STATS_UPLOADED_DATA') . '&nbsp;</b></div>';
    }
    if ($params->get('bytes_downloaded') || $params->get('bytes_uploaded')) {
        echo '<div id="value-center"><b>&nbsp;' . JText::_('COM_TRACKER_STATS_TOTAL_DATA') . '&nbsp;</b></div>';
    }
    echo '</div><div id="row">';
    if ($params->get('download_speed')) {
        echo '<div id="value-center">&nbsp;' . TrackerHelper::make_speed($tracker_stats->total_speed->download_rate) . '&nbsp;</div>';
    }
    if ($params->get('upload_speed')) {
        echo '<div id="value-center">&nbsp;' . TrackerHelper::make_speed($tracker_stats->total_speed->upload_rate) . '&nbsp;</div>';
    }
    if ($params->get('bytes_downloaded')) {
        echo '<div id="value-center">&nbsp;' . TrackerHelper::make_size($tracker_stats->total_transferred->user_downloaded) . '&nbsp;</div>';
    }
    if ($params->get('bytes_uploaded')) {
        echo '<div id="value-center">&nbsp;' . TrackerHelper::make_size($tracker_stats->total_transferred->user_uploaded) . '&nbsp;</div>';
    }
    if ($params->get('bytes_downloaded') || $params->get('bytes_uploaded')) {
        echo '<div id="value-center">&nbsp;' . TrackerHelper::make_size($tracker_stats->total_transferred->user_downloaded + $tracker_stats->total_transferred->user_uploaded) . '&nbsp;</div>';
    }
    echo '</div></div>';
}
if ($params->get('top_downloaders') && count($tracker_stats->top_downloaders) || $params->get('top_uploaders') && count($tracker_stats->top_uploaders) || $params->get('top_sharers') && count($tracker_stats->top_sharers) || $params->get('worst_sharers') && count($tracker_stats->worst_sharers) || $params->get('top_thanked') && count($tracker_stats->top_thanked) || $params->get('top_thanker') && count($tracker_stats->top_thanker)) {
    if ($params->get('top_downloaders') && count($tracker_stats->top_downloaders)) {
        echo '<div id="container">';