diff --git a/checkin_notes b/checkin_notes index ba8719f8ed..3f0b3439d2 100755 --- a/checkin_notes +++ b/checkin_notes @@ -13165,3 +13165,29 @@ David 9 June 2004 std_fixes.h util.C,h xml_util.C,h (removed) + +David 9 June 2004 + - separation of functionality: + update_profile_pages.php rebuilds profile directory + pages (gallery, alphabetic, country) + May want to run this infrequently. + update_uotd.php chooses new UOTD + Should run this every day + - database: profile.verification is not null + + Note: existing projects should modify their databases; + see html/ops/db_update.php + + db/ + schema.sql + html/ + inc/ + *.inc + ops/ + db_update.php + profile_ops.php + update_profile_pages.php + update_uotd.php (new) + user/ + explain_state.php + info.php diff --git a/db/schema.sql b/db/schema.sql index 3ffa78a172..6100b45168 100644 --- a/db/schema.sql +++ b/db/schema.sql @@ -278,7 +278,7 @@ create table profile ( reject integer not null, posts integer not null, uotd_time integer, - verification integer, + verification integer not null, -- UOD screening status: -1 denied, 0 unrated, 1 approved primary key (userid) ); diff --git a/html/inc/cache.inc b/html/inc/cache.inc index de0d4259ba..6c8bd359ca 100644 --- a/html/inc/cache.inc +++ b/html/inc/cache.inc @@ -1,4 +1,4 @@ -$date diff --git a/html/inc/profile.inc b/html/inc/profile.inc index 87c34e1d37..a22bcb3ad9 100644 --- a/html/inc/profile.inc +++ b/html/inc/profile.inc @@ -16,8 +16,6 @@ define('MAX_DESC_LENGTH', 90); define('GALLERY_WIDTH', 7); define('GALLERY_HEIGHT', 4); -define('UOTD_THRESHOLD', 7); - db_init(); function get_profile($userid) { @@ -235,7 +233,8 @@ function process_create_results($user, $profile) { ." language = '$language'," ." response1 = '$response1'," ." response2 = '$response2'," - ." has_picture = '$hasPicture'"; + ." has_picture = '$hasPicture'," + ." verification=0"; $result = mysql_query($query); if (!$result) { profile_error_page("Couldn't create profile: database error"); diff --git a/html/inc/uotd.inc b/html/inc/uotd.inc index dcdf89dc55..8e522e1ba0 100644 --- a/html/inc/uotd.inc +++ b/html/inc/uotd.inc @@ -1,4 +1,6 @@ -id>"; diff --git a/html/ops/db_update.php b/html/ops/db_update.php index b3ab0cc33b..b963ce5708 100644 --- a/html/ops/db_update.php +++ b/html/ops/db_update.php @@ -57,6 +57,12 @@ function update_5_27_2004() { ); } -update_5_27_2004(); +function update_6_9_2004() { + mysql_query( + "alter table profile change verification verification integer not null" + ); +} + +update_6_9_2004(); ?> diff --git a/html/ops/profile_ops.php b/html/ops/profile_ops.php index 55500feab0..415a9e3a59 100644 --- a/html/ops/profile_ops.php +++ b/html/ops/profile_ops.php @@ -40,7 +40,8 @@ if (array_key_exists('num', $_GET) && array_key_exists('set', $_GET)) { } else { $profile = mysql_fetch_assoc($result); if (!$profile) { - echo "No more profiles in this category.

Return to ", PROJECT, " Project Management"; + echo $sql; + echo "
No more profiles in this category.

Return to ", PROJECT, " Project Management"; exit(); } diff --git a/html/ops/update_profile_pages.php b/html/ops/update_profile_pages.php index edabf7b087..5c85fe6ae8 100755 --- a/html/ops/update_profile_pages.php +++ b/html/ops/update_profile_pages.php @@ -14,5 +14,4 @@ build_country_pages(); build_alpha_pages(); build_picture_pages(GALLERY_WIDTH, GALLERY_HEIGHT); -build_uotd_page(); ?> diff --git a/html/ops/update_uotd.php b/html/ops/update_uotd.php new file mode 100755 index 0000000000..f6fccd234b --- /dev/null +++ b/html/ops/update_uotd.php @@ -0,0 +1,11 @@ +#!/usr/local/bin/php + + diff --git a/html/user/explain_state.php b/html/user/explain_state.php index 082e92828d..3ccd673a31 100644 --- a/html/user/explain_state.php +++ b/html/user/explain_state.php @@ -1,5 +1,9 @@ diff --git a/html/user/info.php b/html/user/info.php index f3365b9231..0b0cdb29ad 100644 --- a/html/user/info.php +++ b/html/user/info.php @@ -26,8 +26,8 @@ and when it uses them.

The work done by your computer contributes to the -academic nonprofit research being performed by ", PROJECT, ". -The current research is described here. +academic nonprofit research being performed by ", PROJECT, ", +as described on its web site. The application programs may change from time to time.