2004-12-20 18:29:15 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
2004-12-20 18:29:15 +00:00
|
|
|
|
2005-10-01 11:29:31 +00:00
|
|
|
require_once("../inc/forum.inc");
|
|
|
|
require_once("../inc/text_transform.inc");
|
2004-12-20 18:29:15 +00:00
|
|
|
require_once("../inc/profile.inc");
|
2005-02-08 04:38:31 +00:00
|
|
|
require_once("../inc/util_ops.inc");
|
2006-08-14 22:50:51 +00:00
|
|
|
require_once("../project/project.inc");
|
2004-12-20 18:29:15 +00:00
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
2008-01-15 22:14:07 +00:00
|
|
|
$logged_in_user = get_logged_in_user();
|
|
|
|
|
2004-12-20 18:29:15 +00:00
|
|
|
function buttons($i) {
|
|
|
|
echo "
|
2005-04-18 02:36:35 +00:00
|
|
|
<input type=\"radio\" name=\"user$i\" value=\"0\"> skip <br>
|
|
|
|
<input type=\"radio\" name=\"user$i\" value=\"1\" checked=\"checked\"> accept <br>
|
2005-02-08 04:38:31 +00:00
|
|
|
<input type=\"radio\" name=\"user$i\" value=\"-1\"> reject
|
2004-12-20 18:29:15 +00:00
|
|
|
";
|
|
|
|
}
|
|
|
|
|
2005-02-08 04:38:31 +00:00
|
|
|
admin_page_head("screen profiles");
|
2004-12-20 18:29:15 +00:00
|
|
|
|
2006-08-14 22:50:51 +00:00
|
|
|
if (function_exists('profile_screen_query')) {
|
|
|
|
$query = profile_screen_query();
|
2006-08-14 22:57:59 +00:00
|
|
|
} else if (profile_screening()) {
|
2006-08-14 22:50:51 +00:00
|
|
|
$query = "select * from profile, user where profile.userid=user.id "
|
|
|
|
." and has_picture>0 "
|
|
|
|
." and verification=0 "
|
|
|
|
." limit 20"
|
|
|
|
;
|
|
|
|
} else {
|
|
|
|
$query = "select * from profile, user where profile.userid=user.id "
|
|
|
|
." and has_picture>0 "
|
|
|
|
." and verification=0 "
|
|
|
|
." and uotd_time is null "
|
|
|
|
." and expavg_credit>1 "
|
2008-03-07 04:38:06 +00:00
|
|
|
." and (response1 <> '' or response2 <> '') "
|
2006-08-14 22:50:51 +00:00
|
|
|
." order by recommend desc limit 20"
|
|
|
|
;
|
|
|
|
}
|
2006-08-14 22:11:53 +00:00
|
|
|
$result = mysql_query($query);
|
2004-12-20 18:29:15 +00:00
|
|
|
|
|
|
|
$n = 0;
|
2008-03-07 04:38:06 +00:00
|
|
|
echo "<form action=profile_screen_action.php>
|
|
|
|
";
|
2004-12-20 18:29:15 +00:00
|
|
|
start_table();
|
2004-12-27 22:52:55 +00:00
|
|
|
$found = false;
|
2004-12-20 18:29:15 +00:00
|
|
|
while ($profile = mysql_fetch_object($result)) {
|
2004-12-27 22:52:55 +00:00
|
|
|
$found = true;
|
2008-03-07 04:38:06 +00:00
|
|
|
echo "<tr><td valign=top>";
|
2004-12-20 18:29:15 +00:00
|
|
|
buttons($n);
|
|
|
|
echo "
|
2006-08-14 22:11:53 +00:00
|
|
|
<br>Name: $profile->name
|
2008-03-07 04:38:06 +00:00
|
|
|
<br>recommends: $profile->recommend
|
|
|
|
<br>rejects: $profile->reject
|
|
|
|
<br>RAC: $profile->expavg_credit
|
2004-12-20 18:29:15 +00:00
|
|
|
<br>
|
|
|
|
";
|
2008-03-07 04:38:06 +00:00
|
|
|
echo "</td><td><table border=2> ";
|
2008-01-15 22:14:07 +00:00
|
|
|
show_profile($profile, $logged_in_user, true);
|
2008-03-07 04:38:06 +00:00
|
|
|
echo "</table></td></tr>\n";
|
2005-02-08 04:38:31 +00:00
|
|
|
echo "<input type=\"hidden\" name=\"userid$n\" value=\"$profile->userid\">\n";
|
2004-12-20 18:29:15 +00:00
|
|
|
$n++;
|
|
|
|
}
|
|
|
|
|
|
|
|
end_table();
|
2004-12-27 22:52:55 +00:00
|
|
|
|
|
|
|
if ($found) {
|
|
|
|
echo "
|
2005-02-08 04:38:31 +00:00
|
|
|
<input type=\"hidden\" name=\"n\" value=\"$n\">
|
|
|
|
<input type=\"submit\" value=\"OK\">
|
2004-12-27 22:52:55 +00:00
|
|
|
";
|
|
|
|
} else {
|
|
|
|
echo "No more profiles to screen.";
|
|
|
|
}
|
|
|
|
|
2004-12-20 18:29:15 +00:00
|
|
|
echo "
|
|
|
|
</form>
|
|
|
|
";
|
2004-12-27 22:52:55 +00:00
|
|
|
|
2005-02-08 04:38:31 +00:00
|
|
|
admin_page_tail();
|
2008-01-15 22:14:07 +00:00
|
|
|
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
2004-12-20 18:29:15 +00:00
|
|
|
?>
|