diff --git a/checkin_notes b/checkin_notes
index 2443eb4bf4..33fe754e22 100755
--- a/checkin_notes
+++ b/checkin_notes
@@ -12155,3 +12155,10 @@ Matt 26 Sept 2005
html/
inc/
cache.inc
+
+David 26 Sept 2005
+ - Restored the profile screening code, enabled by a
+
+David P. Anderson, Eric Korpela, Rom Walton
+
To appear in First IEEE International Conference on e-Science and Grid Technologies
+
5-8 December 2005, Melbourne
+
+Describes tools for transparently moving jobs between Condor and BOINC. +
+A more technical paper. +Also available in +
+Public Computing: Reconnecting People to Science
+
+A paper about BOINC's goals.
+Also available in
+
To replace it,
click the \"Browse\" button and select a JPEG or PNG file (50KB or less).
@@ -167,8 +177,7 @@ check this box:
rowify("
David P. Anderson.
+
Conference on Shared Knowledge and the Web,
+
Residencia de Estudiantes, Madrid, Spain, Nov. 17-19 2003.
+
+
+
+
+
+";
+page_tail();
+?>
diff --git a/html/inc/profile.inc b/html/inc/profile.inc
index f7c342982a..2ce332e806 100644
--- a/html/inc/profile.inc
+++ b/html/inc/profile.inc
@@ -7,7 +7,6 @@ require_once("../inc/sanitize_html.inc");
require_once("../inc/cache.inc");
require_once("../inc/user.inc");
-// TODO: Determine if we can always assume these will be the same number.
define('SMALL_IMG_WIDTH', 64);
define('SMALL_IMG_HEIGHT', 64);
@@ -19,6 +18,11 @@ define('MAX_DESC_LENGTH', 90);
define('GALLERY_WIDTH', 7);
define('GALLERY_HEIGHT', 4);
+function profile_screening() {
+ $config = get_config();
+ return parse_bool($config, "profile_screening");
+}
+
function profile_error_page($str) {
page_head("Profile error");
echo "$str
\n";
@@ -124,20 +128,21 @@ function show_textarea($name, $text) {
// user the verification status of their profile.
//
function offensive_profile_warning($verify_flag) {
- return;
if ($verify_flag == 0) {
return "
Your profile will be made visible to other people
as soon as it has been approved by the project.
This may take up to a few days.
- ";
+
+ ";
} else if ($verify_flag == -1) {
return "
Your profile has been marked as unacceptable.
It is not visible to other people. Please change it.
- ";
+
+ ";
}
return "";
}
@@ -146,6 +151,11 @@ function show_picture_option($profile) {
row1("Picture");
+ $warning = "";
+ if (profile_screening()) {
+ $warning = offensive_profile_warning($profile->verification);
+ }
+
if ($profile->has_picture) {
echo "
@@ -153,7 +163,7 @@ function show_picture_option($profile) {
";
- }
- else {
+ } else {
rowify("
If you would like include a picture with your profile,
click the \"Browse\" button and select a JPEG or PNG file.
@@ -332,9 +341,13 @@ function getImages($fileName) {
return array($image, $smallImage);
}
-function scale_image($image, $origWidth, $origHeight, $targetWidth, $targetHeight) {
+function scale_image(
+ $image, $origWidth, $origHeight, $targetWidth, $targetHeight
+) {
- // If the image is already smaller than the target dimensions, just return it.
+ // If the image is already smaller than the target dimensions,
+ // just return it.
+ //
if ($origWidth <= $targetWidth && $origHeight <= $targetHeight) {
return $image;
}
@@ -349,17 +362,25 @@ function scale_image($image, $origWidth, $origHeight, $targetWidth, $targetHeigh
$destHeight = $origHeight;
}
-$gd_info = gd_info();
-$newGD = (strstr($gd_info["GD Version"], "2.0")!="");
-if ($newGD) {
- // If you are using a modern PHP/GD installation that does 'truecolor' images, this is what's needed.
- $newImage = ImageCreateTrueColor($destWidth, $destHeight);
- ImageCopyResampled($newImage, $image, 0, 0, 0, 0, $destWidth, $destHeight, $origWidth, $origHeight);
-} else {
- // If not, use this block. The image quality is lower but it works using older PHP/GD versions.
- $newImage = ImageCreate($destWidth, $destHeight);
- ImageCopyResized($newImage, $image, 0, 0, 0, 0, $destWidth, $destHeight, $origWidth, $origHeight);
-}
+ $gd_info = gd_info();
+ $newGD = (strstr($gd_info["GD Version"], "2.0")!="");
+ if ($newGD) {
+ // If you are using a modern PHP/GD installation that does
+ // 'truecolor' images, this is what's needed.
+ $newImage = ImageCreateTrueColor($destWidth, $destHeight);
+ ImageCopyResampled(
+ $newImage, $image, 0, 0, 0, 0, $destWidth,
+ $destHeight, $origWidth, $origHeight
+ );
+ } else {
+ // If not, use this block.
+ // The image quality is lower but it works using older PHP/GD versions.
+ $newImage = ImageCreate($destWidth, $destHeight);
+ ImageCopyResized(
+ $newImage, $image, 0, 0, 0, 0, $destWidth, $destHeight,
+ $origWidth, $origHeight
+ );
+ }
return $newImage;
}
@@ -408,9 +429,11 @@ function show_user_table($members, $offset, $numToDisplay, $cols) {
echo "userid . '.jpg' . "\">
-userid . '_sm.jpg' . "\">
" . offensive_profile_warning($profile->verification) . "Your profile picture is shown at left.
+ $warning Your profile picture is shown at left.
");
end_table();
echo "