user web: prevent users with RAC < 1 become a user of the day (protection from spam)

svn path=/trunk/boinc/; revision=13567
This commit is contained in:
Rytis Slatkevičius 2007-09-11 19:25:35 +00:00
parent b42927889c
commit 2692557dd5
2 changed files with 11 additions and 5 deletions

View File

@ -8385,9 +8385,15 @@ David 11 Sept 2007
user_graph.php
Reinhard 11 Sept 2007
- initialize local 'struct sigaction' variable to zero in xwin_graphics_event_loop()
- initialize local 'struct sigaction' variable to zero in
xwin_graphics_event_loop()
api/
x_opengl.C
x_opengl.C
Rytis 11 Sep 2007
- user web: prevent users with RAC < 1 become a user of the day
(protection from spam)
html/inc/uotd.inc

View File

@ -120,8 +120,8 @@ function default_uotd_candidates_query(){
$query .= "ORDER BY RAND()";
} else {
$query = "SELECT * FROM profile,user WHERE profile.userid=user.id ";
$query .= " AND verification=1 ";
$query .= " AND uotd_time IS NULL ";
$query .= "AND expavg_credit>1 ";
$query .= "AND uotd_time IS NULL ";
$query .= "ORDER BY RAND()";
}
return $query;