mirror of https://github.com/BOINC/boinc.git
- web: in user search, show most recent rather than oldest users
- web: don't show URL in account page if expavg_credit < 1. This discourages a type of spam. svn path=/trunk/boinc/; revision=25267
This commit is contained in:
parent
4435172b42
commit
58e26b9b4b
|
@ -1721,3 +1721,14 @@ David 14 Feb 2012
|
|||
|
||||
client/
|
||||
work_fetch.cpp
|
||||
|
||||
David 15 Feb 2012
|
||||
- web: in user search, show most recent rather than oldest users
|
||||
- web: don't show URL in account page if expavg_credit < 1.
|
||||
This discourages a type of spam.
|
||||
|
||||
html/
|
||||
inc/
|
||||
user.inc
|
||||
user/
|
||||
user_search.php
|
||||
|
|
|
@ -312,7 +312,9 @@ function show_user_summary_public($user) {
|
|||
row2(tra("User ID"), $user->id);
|
||||
row2(tra("%1 member since", PROJECT), date_str($user->create_time));
|
||||
row2(tra("Country"), $user->country);
|
||||
if (strlen($user->url)) {
|
||||
// don't show URL if user has no recent credit (spam suppression)
|
||||
//
|
||||
if (strlen($user->url) && $user->expavg_credit > 1) {
|
||||
row2(tra("URL"), "<a href=\"http://$user->url\">http://$user->url</a>");
|
||||
}
|
||||
if (!no_computing()) {
|
||||
|
|
|
@ -121,7 +121,7 @@ function search_action() {
|
|||
$where .= " and has_profile=0";
|
||||
}
|
||||
$fields = "id, create_time, name, country, total_credit, expavg_credit, teamid, url, has_profile, donated";
|
||||
$users = BoincUser::enum_fields($fields, $where, "limit 100");
|
||||
$users = BoincUser::enum_fields($fields, $where, "order by id desc limit 100");
|
||||
$search_type = get_str('search_type', true);
|
||||
if ($search_type == 'date') {
|
||||
usort($users, 'compare_create_time');
|
||||
|
|
Loading…
Reference in New Issue