From 6502400932db2af9ff1c7fdbc37260c45b4328df Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 10 Sep 2005 06:16:31 +0000 Subject: [PATCH] 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 --- checkin_notes | 10 ++++++++++ html/inc/gallery.inc | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index 83bf452314..11dc4ce7be 100755 --- a/checkin_notes +++ b/checkin_notes @@ -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 + diff --git a/html/inc/gallery.inc b/html/inc/gallery.inc index b0f5db58df..b0a08d4957 100644 --- a/html/inc/gallery.inc +++ b/html/inc/gallery.inc @@ -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);