2004-12-20 18:29:15 +00:00
|
|
|
<?php
|
2005-02-08 04:38:31 +00:00
|
|
|
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
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");
|
2004-12-20 18:29:15 +00:00
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
|
|
|
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:11:53 +00:00
|
|
|
$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 "
|
|
|
|
." order by recommend desc limit 20"
|
|
|
|
;
|
|
|
|
$result = mysql_query($query);
|
2004-12-20 18:29:15 +00:00
|
|
|
|
|
|
|
$n = 0;
|
2005-02-08 04:38:31 +00:00
|
|
|
echo "<form method=\"get\" action=\"profile_screen_action.php\">\n";
|
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;
|
2004-12-20 18:29:15 +00:00
|
|
|
echo "<tr><td>
|
|
|
|
";
|
|
|
|
buttons($n);
|
|
|
|
echo "
|
|
|
|
</td><td>
|
|
|
|
";
|
|
|
|
echo "recommends: $profile->recommend
|
|
|
|
<br>rejects: $profile->reject
|
2006-08-14 22:11:53 +00:00
|
|
|
<br>Name: $profile->name
|
2004-12-20 18:29:15 +00:00
|
|
|
<br>
|
|
|
|
";
|
|
|
|
show_profile($profile->userid, true);
|
|
|
|
echo "</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();
|
2004-12-20 18:29:15 +00:00
|
|
|
?>
|