if(!check_perms('users_view_ips') || !check_perms('users_view_email')) { error(403); } show_header('Registration log'); define('USERS_PER_PAGE', 50); list($Page,$Limit) = page_limit(USERS_PER_PAGE); $RS = $DB->query("SELECT SQL_CALC_FOUND_ROWS m.ID, m.IP, m.ipcc, m.Email, m.Username, m.PermissionID, m.Uploaded, m.Downloaded, m.Enabled, i.Donor, i.Warned, i.JoinDate, (SELECT COUNT(h1.UserID) FROM users_history_ips AS h1 WHERE h1.IP=m.IP) AS Uses, im.ID, im.IP, im.ipcc, im.Email, im.Username, im.PermissionID, im.Uploaded, im.Downloaded, im.Enabled, ii.Donor, ii.Warned, ii.JoinDate, (SELECT COUNT(h2.UserID) FROM users_history_ips AS h2 WHERE h2.IP=im.IP) AS InviterUses FROM users_main AS m LEFT JOIN users_info AS i ON i.UserID=m.ID LEFT JOIN users_main AS im ON i.Inviter = im.ID LEFT JOIN users_info AS ii ON i.Inviter = ii.UserID WHERE i.JoinDate > '".time_minus(3600*24*3)."' ORDER BY i.Joindate DESC LIMIT $Limit"); $DB->query("SELECT FOUND_ROWS()"); list($Results) = $DB->next_record(); $DB->set_query_id($RS); if($DB->record_count()) { ?>
User | Ratio | IP | Country | Host | Registered | |
=format_username($UserID, true, true, true, true)?> =format_username($InviterID, true, true, true, true)?> |
=ratio($Uploaded,$Downloaded)?> =ratio($InviterUploaded,$InviterDownloaded)?> |
=display_str($Email)?>
[H|S] =display_str($InviterEmail)?> [H|S] |
=display_str($IP)?>
=display_str($Uses)?> [H|S] =display_str($InviterIP)?> =display_str($InviterUses)?> [H|S] |
=$IPCC?> =$InviterIPCC?> |
=get_host($IP)?> =get_host($InviterIP)?> |
=time_diff($Joined)?> =time_diff($InviterJoined)?> |