user profiles: do NOT display pictures in Gallery where admin has

rejected profile.  Janus, I don't know if this is complete enough
to prevent rejected pictures from EVER being shown.  Do you?

svn path=/trunk/boinc/; revision=7964
This commit is contained in:
Bruce Allen 2005-09-10 06:16:31 +00:00
parent 98e6124369
commit 6502400932
2 changed files with 11 additions and 1 deletions

View File

@ -11594,3 +11594,13 @@ David 9 Sept 2005
sched/
validator.C
Bruce 10 Sept 2005
- user profiles: do NOT display pictures in Gallery where admin has
rejected profile. Janus, I don't know if this is complete enough
to prevent rejected pictures from EVER being shown. Do you?
html/
inc/
gallery.inc

View File

@ -59,7 +59,7 @@ function build_picture_pages($width, $height) {
// TODO: Standardize "Last modified" string to a function call (util.inc).
$query = "SELECT userid FROM profile WHERE has_picture = 1";
$query = "SELECT userid FROM profile WHERE has_picture = 1 AND verification=1";
$result = mysql_query($query);
$numIds = mysql_num_rows($result);