if (isset($_GET['userid']) && check_perms('users_view_invites')) { if (!is_number($_GET['userid'])) { error(403); } $UserID=$_GET['userid']; $Sneaky = true; } else { if (!$UserCount = $Cache->get_value('stats_user_count')) { $DB->query(" SELECT COUNT(ID) FROM users_main WHERE Enabled = '1'"); list($UserCount) = $DB->next_record(); $Cache->cache_value('stats_user_count', $UserCount, 0); } $UserID = $LoggedUser['ID']; $Sneaky = false; } list($UserID, $Username, $PermissionID) = array_values(Users::user_info($UserID)); $DB->query(" SELECT InviteKey, Email, Expires FROM invites WHERE InviterID = '$UserID' ORDER BY Expires"); $Pending = $DB->to_array(); $OrderWays = array('username', 'email', 'joined', 'lastseen', 'uploaded', 'downloaded', 'ratio'); if (empty($_GET['order'])) { $CurrentOrder = 'id'; $CurrentSort = 'asc'; $NewSort = 'desc'; } else { if (in_array($_GET['order'], $OrderWays)) { $CurrentOrder = $_GET['order']; if ($_GET['sort'] == 'asc' || $_GET['sort'] == 'desc') { $CurrentSort = $_GET['sort']; $NewSort = ($_GET['sort'] == 'asc' ? 'desc' : 'asc'); } else { error(404); } } else { error(404); } } switch ($CurrentOrder) { case 'username': $OrderBy = "um.Username"; break; case 'email': $OrderBy = "um.Email"; break; case 'joined': $OrderBy = "ui.JoinDate"; break; case 'lastseen': $OrderBy = "um.LastAccess"; break; case 'uploaded': $OrderBy = "um.Uploaded"; break; case 'downloaded': $OrderBy = "um.Downloaded"; break; case 'ratio': $OrderBy = "(um.Uploaded / um.Downloaded)"; break; default: $OrderBy = "um.ID"; break; } $CurrentURL = Format::get_url(array('action', 'order', 'sort')); $DB->query(" SELECT ID, Email, Uploaded, Downloaded, JoinDate, LastAccess FROM users_main AS um LEFT JOIN users_info AS ui ON ui.UserID = um.ID WHERE ui.Inviter = '$UserID' ORDER BY $OrderBy $CurrentSort"); $Invited = $DB->to_array(); View::show_header('Invites'); ?>
Because the user limit has been reached you are unable to send invites at this time.
Please note that selling, trading, or publicly giving away our invitations — or responding to public invite requests — is strictly forbidden, and may result in you and your entire invite tree being banned. This includes offering to give away our invitations on any forum which is not a class-restricted forum on another private tracker.
Do not send an invite to anyone who has previously had a =SITE_NAME?> account. Please direct them to =BOT_DISABLED_CHAN?> on =BOT_SERVER?> if they wish to reactivate their account.
Remember that you are responsible for ALL invitees, and your account and/or privileges may be disabled due to your invitees' actions. You should know the person you're inviting. If you aren't familiar enough with the user to trust them, we suggest not inviting them.
Do not send an invite if you have not read or do not understand the information above.
Email address | Expires in | Delete invite |
=display_str($Email)?> | =time_diff($Expires)?> | Delete invite |
Username | Joined | Last Seen | Uploaded | Downloaded | Ratio | |
=Users::format_username($ID, true, true, true, true)?> | =display_str($Email)?> | =time_diff($JoinDate, 1)?> | =time_diff($LastAccess, 1);?> | =Format::get_size($Uploaded)?> | =Format::get_size($Downloaded)?> | =Format::get_ratio_html($Uploaded, $Downloaded)?> |