*** empty log message ***

svn path=/trunk/boinc/; revision=3519
This commit is contained in:
David Anderson 2004-06-09 21:42:23 +00:00
parent 4c39b058eb
commit 319b4573b7
13 changed files with 62 additions and 13 deletions

View File

@ -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

View File

@ -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)
);

View File

@ -1,4 +1,4 @@
<?
<?php
// mechanism for caching commonly-accessed pages

View File

@ -1,4 +1,4 @@
<?
<?php
// Number of forum topics per page.
$threads_per_page = 50;

View File

@ -1,4 +1,4 @@
<?
<?php
function news_item($date, $text) {
echo "<b>$date</b>

View File

@ -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");

View File

@ -1,4 +1,6 @@
<?
<?php
define('UOTD_THRESHOLD', 7);
function uotd_thumbnail($profile, $user) {
return "<a href=view_profile?userid=$user->id><img align=left src=" . IMAGE_URL . $user->id . "_sm.jpg></a>";

View File

@ -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();
?>

View File

@ -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.<p><a href=index.php>Return to ", PROJECT, " Project Management</a>";
echo $sql;
echo "<br>No more profiles in this category.<p><a href=index.php>Return to ", PROJECT, " Project Management</a>";
exit();
}

View File

@ -14,5 +14,4 @@ build_country_pages();
build_alpha_pages();
build_picture_pages(GALLERY_WIDTH, GALLERY_HEIGHT);
build_uotd_page();
?>

11
html/ops/update_uotd.php Executable file
View File

@ -0,0 +1,11 @@
#!/usr/local/bin/php
<?php
require_once("../inc/db.inc");
require_once("../inc/uotd.inc");
db_init();
build_uotd_page();
?>

View File

@ -1,5 +1,9 @@
<?php
require_once("../inc/util.inc");
page_head("Result state explanation");
$field = $_GET["field"];
if ($field == "result_server_state") {
@ -65,4 +69,5 @@
if ($field == "validate_state") {
}
page_tail();
?>

View File

@ -26,8 +26,8 @@ and when it uses them.
<p>
The work done by your computer contributes to the
academic nonprofit research being performed by ", PROJECT, ".
The current research is described <a href=", project_research_url(), ">here</a>.
academic nonprofit research being performed by ", PROJECT, ",
as described on its web site.
The application programs may change from time to time.
</p>