if(!check_perms('site_view_flow')) { error(403); } View::show_header('Upscale Pool'); define('USERS_PER_PAGE', 50); list($Page,$Limit) = Format::page_limit(USERS_PER_PAGE); $RS = $DB->query("SELECT SQL_CALC_FOUND_ROWS m.ID, m.Username, m.Uploaded, m.Downloaded, m.PermissionID, m.Enabled, i.Donor, i.Warned, i.JoinDate, i.RatioWatchEnds, i.RatioWatchDownload, m.RequiredRatio FROM users_main AS m LEFT JOIN users_info AS i ON i.UserID=m.ID WHERE i.RatioWatchEnds != '0000-00-00 00:00:00' AND m.Enabled = '1' ORDER BY i.RatioWatchEnds ASC LIMIT $Limit"); $DB->query("SELECT FOUND_ROWS()"); list($Results) = $DB->next_record(); $DB->query("SELECT COUNT(UserID) FROM users_info WHERE BanDate != '0000-00-00 00:00:00' AND BanReason = '2'"); list($TotalDisabled) = $DB->next_record(); $DB->set_query_id($RS); if($DB->record_count()) { ?>
There are currently =number_format($Results)?> users queued by the system and =number_format($TotalDisabled)?> already disabled.
User | Up | Down | Ratio | Required Ratio | Deficit | Gamble | Registered | Remaining | Lifespan |
=Users::format_username($UserID, true, true, true, true)?> | =Format::get_size($Uploaded)?> | =Format::get_size($Downloaded)?> | =Format::get_ratio_html($Uploaded, $Downloaded)?> | =number_format($RequiredRatio, 2)?> | if(($Downloaded*$RequiredRatio)>$Uploaded) { echo Format::get_size(($Downloaded*$RequiredRatio)-$Uploaded);}?> | =Format::get_size($Downloaded-$RatioWatchDownload)?> | =time_diff($Joined,2)?> | =time_diff($RatioWatchEnds)?> | //time_diff(strtotime($Joined), strtotime($RatioWatchEnds))?> |