mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=2707
This commit is contained in:
parent
0f5cf132c9
commit
2d4552e42d
|
@ -7916,3 +7916,17 @@ Karl 2003-11-28
|
|||
|
||||
client/
|
||||
cs_cmdline.C
|
||||
|
||||
David 28 Nov 2003
|
||||
- added "signature" field to user table;
|
||||
when making forum postings,
|
||||
users have the option of appending signature
|
||||
|
||||
db/
|
||||
boinc_db.C,h
|
||||
schema.sql
|
||||
html_user/
|
||||
edit_user_info_action.php
|
||||
edit_user_info_form.php
|
||||
index.php
|
||||
util.inc
|
||||
|
|
|
@ -186,6 +186,7 @@ void DB_USER::db_print(char* buf){
|
|||
escape_single_quotes(global_prefs);
|
||||
escape_single_quotes(project_prefs);
|
||||
escape_single_quotes(url);
|
||||
escape_single_quotes(signature);
|
||||
sprintf(buf,
|
||||
"id=%d, create_time=%d, email_addr='%s', name='%s', "
|
||||
"authenticator='%s', "
|
||||
|
@ -195,7 +196,7 @@ void DB_USER::db_print(char* buf){
|
|||
"teamid=%d, venue='%s', url='%s', send_email=%d, show_hosts=%d, "
|
||||
"posts=%d, "
|
||||
"seti_id=%d, seti_nresults=%d, seti_last_result_time=%d, "
|
||||
"seti_total_cpu=%.15e",
|
||||
"seti_total_cpu=%.15e, signature='%s'",
|
||||
id,
|
||||
create_time,
|
||||
email_addr,
|
||||
|
@ -217,7 +218,8 @@ void DB_USER::db_print(char* buf){
|
|||
seti_id,
|
||||
seti_nresults,
|
||||
seti_last_result_time,
|
||||
seti_total_cpu
|
||||
seti_total_cpu,
|
||||
signature
|
||||
);
|
||||
unescape_single_quotes(email_addr);
|
||||
unescape_single_quotes(name);
|
||||
|
@ -226,6 +228,7 @@ void DB_USER::db_print(char* buf){
|
|||
unescape_single_quotes(global_prefs);
|
||||
unescape_single_quotes(project_prefs);
|
||||
unescape_single_quotes(url);
|
||||
unescape_single_quotes(signature);
|
||||
}
|
||||
|
||||
void DB_USER::db_parse(MYSQL_ROW &r) {
|
||||
|
@ -253,6 +256,7 @@ void DB_USER::db_parse(MYSQL_ROW &r) {
|
|||
seti_nresults = safe_atoi(r[i++]);
|
||||
seti_last_result_time = safe_atoi(r[i++]);
|
||||
seti_total_cpu = safe_atof(r[i++]);
|
||||
strcpy2(signature, r[i++]);
|
||||
}
|
||||
|
||||
void DB_TEAM::db_print(char* buf){
|
||||
|
|
|
@ -163,6 +163,7 @@ struct USER {
|
|||
int seti_nresults; // number of WUs completed
|
||||
int seti_last_result_time; // time of last result (UNIX)
|
||||
double seti_total_cpu; // number of CPU seconds
|
||||
char signature[256];
|
||||
void clear();
|
||||
};
|
||||
|
||||
|
|
|
@ -1,4 +1,10 @@
|
|||
/* If you add/change anything, update boinc_db.C,h */
|
||||
/* If you add/change anything, update
|
||||
boinc_db.C,h
|
||||
and if needed:
|
||||
html_user/
|
||||
create_account_action.php
|
||||
team_create_action.php
|
||||
*/
|
||||
/* Fields are documented in boinc_db.h */
|
||||
/* Do not replace this with an automatically generated schema */
|
||||
|
||||
|
@ -71,6 +77,7 @@ create table user (
|
|||
seti_nresults integer not null,
|
||||
seti_last_result_time integer not null,
|
||||
seti_total_cpu double not null,
|
||||
signature varchar(254),
|
||||
primary key (id)
|
||||
);
|
||||
|
||||
|
|
|
@ -10,8 +10,9 @@
|
|||
$url = $HTTP_POST_VARS["url"];
|
||||
$country = $HTTP_POST_VARS["country"];
|
||||
$postal_code = $HTTP_POST_VARS["postal_code"];
|
||||
$signature = $HTTP_POST_VARS["signature"];
|
||||
|
||||
$result = mysql_query("update user set name='$name', url='$url', country='$country', postal_code='$postal_code' where id=$user->id");
|
||||
$result = mysql_query("update user set name='$name', url='$url', country='$country', postal_code='$postal_code' signature='$signature' where id=$user->id");
|
||||
if ($result) {
|
||||
Header("Location: home.php");
|
||||
} else {
|
||||
|
|
|
@ -15,7 +15,7 @@ row2("Name",
|
|||
"<input name=user_name size=30 value='$user->name'>"
|
||||
);
|
||||
row2("URL",
|
||||
"http://<input name=url size=30 value='$user->url'>"
|
||||
"http://<input name=url size=50 value='$user->url'>"
|
||||
);
|
||||
row2_init("Country",
|
||||
"<select name=country>"
|
||||
|
@ -25,6 +25,9 @@ echo "</select></td></tr>\n";
|
|||
row2("Postal (ZIP) code",
|
||||
"<input name=postal_code size=20 value='$user->postal_code'>"
|
||||
);
|
||||
|
||||
$x = "<textarea name=signature rows=4 cols=50>$user->signature</textarea>";
|
||||
row2("Signature for message boards", $x);
|
||||
row2("", "<input type=submit value='Update info'>");
|
||||
end_table();
|
||||
echo "</form>\n";
|
||||
|
|
|
@ -15,11 +15,14 @@
|
|||
project_intro();
|
||||
|
||||
echo "
|
||||
<br><br>
|
||||
<table cellpadding=8>
|
||||
<tr><td width=40%>
|
||||
<h3>Join ".PROJECT." </h3>
|
||||
<p>
|
||||
<ul>
|
||||
<li><a href=".URL_BASE."info.php>Rules and policies <b>[read this first]</b></a>
|
||||
<li><a href=".URL_BASE."create_account_form.php>Create an account</a>
|
||||
<li><a href=".URL_BASE."create_account_form.php>Create account</a>
|
||||
</ul>
|
||||
|
||||
<h3>Returning participants</h3>
|
||||
|
@ -45,6 +48,16 @@
|
|||
<li><a href=".URL_BASE."stats.php>XML statistics data</a>
|
||||
</ul>
|
||||
-->
|
||||
</td>
|
||||
<td valign=top bgcolor=dddddd>
|
||||
<center>
|
||||
<h3>News</h3>
|
||||
</center>
|
||||
";
|
||||
project_news();
|
||||
echo "
|
||||
</td>
|
||||
</tr></table>
|
||||
<!--
|
||||
";
|
||||
|
||||
|
|
|
@ -198,10 +198,10 @@ function row1($x, $ncols=2) {
|
|||
function row2($x, $y) {
|
||||
if ($x=="") $x="<br>";
|
||||
if ($y=="") $y="<br>";
|
||||
echo "<tr><td class=fieldname bgcolor=eeeeee width=50% align=right valign=top>$x</td><td valign=top><b>$y</b></td></tr>\n";
|
||||
echo "<tr><td class=fieldname bgcolor=eeeeee width=40% align=right valign=top>$x</td><td valign=top><b>$y</b></td></tr>\n";
|
||||
}
|
||||
function row2_init($x, $y) {
|
||||
echo "<tr><td class=fieldname bgcolor=eeeeee width=50% align=right valign=top>$x</td><td valign=top><b>$y\n";
|
||||
echo "<tr><td class=fieldname bgcolor=eeeeee width=40% align=right valign=top>$x</td><td valign=top><b>$y\n";
|
||||
}
|
||||
|
||||
function row2_plain($x, $y) {
|
||||
|
|
Loading…
Reference in New Issue