mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=7234
This commit is contained in:
parent
5a606613f4
commit
9276415e06
|
@ -10273,3 +10273,15 @@ Rom 10 Aug 2005
|
|||
html/user/
|
||||
create_account.php
|
||||
lookup_account.php
|
||||
|
||||
David 10 Aug 2005
|
||||
- Add "finish" page for new account creation
|
||||
(asks for name/country/zip)
|
||||
- put <archive> tags around db_purge XML
|
||||
|
||||
html/user/
|
||||
account_finish.php (new)
|
||||
account_finish_action.php (new)
|
||||
bbcode.php
|
||||
sched/
|
||||
db_purge.C
|
||||
|
|
|
@ -48,9 +48,10 @@ add pie charts for disk usage
|
|||
<li> Disk space management: prevent disk space usage from
|
||||
exceeding user preferences,
|
||||
and enforce resource shares,
|
||||
with file deletion according to project policy,
|
||||
with file deletion according to project policy.
|
||||
|
||||
<li> Core client: use select() instead of polling
|
||||
for I/O (RPCs, file transfers, GUI RPCs).
|
||||
|
||||
<li> Use database IDs instead of names to identify
|
||||
results and WUs in the core client
|
||||
|
@ -59,7 +60,6 @@ since indices on integers are apparently more efficient
|
|||
than indices on text fields).
|
||||
This involves minor but pervasive changes.
|
||||
|
||||
for I/O (RPCs, file transfers, GUI RPCs).
|
||||
</ul>
|
||||
Please check with davea at ssl.berkeley.edu
|
||||
before undertaking any of these.
|
||||
|
|
|
@ -9,7 +9,7 @@ array("August 3, 2005",
|
|||
|
||||
array("July 25, 2005",
|
||||
"A group of students from Cornell have written
|
||||
<a href=distributing_science_final.pdf>Distributing Science<a>,
|
||||
<a href=distributing_science_final.pdf>Distributing Science</a>,
|
||||
a very nice article about BOINC
|
||||
and some of the projects using it."
|
||||
),
|
||||
|
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
require_once('../inc/db.inc');
|
||||
require_once('../inc/util.inc');
|
||||
require_once('../inc/countries.inc');
|
||||
require_once('../inc/translation.inc');
|
||||
|
||||
db_init();
|
||||
$auth = process_user_text(get_str("auth"));
|
||||
$user = lookup_user_auth($auth);
|
||||
if (!$user) {
|
||||
error_page("no such account");
|
||||
}
|
||||
page_head("Finish account setup");
|
||||
|
||||
echo "
|
||||
<form action=account_finish_action.php method=post>
|
||||
";
|
||||
start_table();
|
||||
row2(
|
||||
tr(CREATE_AC_NAME)."<br><span class=description>".tr(CREATE_AC_NAME_DESC)."</span>",
|
||||
"<input name=name size=30 value=$user->name>"
|
||||
);
|
||||
row2_init(
|
||||
tr(CREATE_AC_COUNTRY)."<br><span class=description>".tr(CREATE_AC_COUNTRY_DESC)."</span>",
|
||||
"<select name=country>"
|
||||
);
|
||||
print_country_select();
|
||||
echo "</select></td></tr>\n";
|
||||
row2(
|
||||
tr(CREATE_AC_ZIP)."<br><span class=description>".tr(OPTIONAL).".</span>",
|
||||
"<input name=postal_code size=20>"
|
||||
);
|
||||
row2("",
|
||||
"<input type=submit value=OK>"
|
||||
);
|
||||
end_table();
|
||||
echo "
|
||||
<input type=hidden name=auth value=$auth>
|
||||
</form>
|
||||
";
|
||||
|
||||
page_tail();
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
include_once("../inc/db.inc");
|
||||
include_once("../inc/util.inc");
|
||||
include_once("../inc/email.inc");
|
||||
|
||||
db_init();
|
||||
|
||||
function show_error($str) {
|
||||
page_head("Can't update account");
|
||||
echo "$str<br>\n";
|
||||
echo mysql_error();
|
||||
echo "<p>Click your browser's <b>Back</b> button to try again.\n<p>\n";
|
||||
page_tail();
|
||||
exit();
|
||||
}
|
||||
|
||||
$auth = process_user_text(post_str("auth"));
|
||||
|
||||
$name = process_user_text(post_str("name"));
|
||||
if (strlen($name)==0) {
|
||||
show_error("You must supply a name for your account");
|
||||
}
|
||||
if ($new_name != strip_tags($new_name)) {
|
||||
show_error("HTML tags not allowed in name");
|
||||
}
|
||||
|
||||
$country = post_str("country");
|
||||
if (!is_valid_country($country)) {
|
||||
show_error( "bad country");
|
||||
}
|
||||
|
||||
$postal_code = strip_tags(process_user_text(post_str("postal_code")));
|
||||
|
||||
$query = "update user set name='$name', country='$country', postal_code='$postal_code' where authenticator='$auth'";
|
||||
$retval = mysql_query($query);
|
||||
if (!$retval) {
|
||||
show_error("database error");
|
||||
}
|
||||
|
||||
Header("Location: home.php");
|
||||
|
||||
?>
|
|
@ -2,20 +2,22 @@
|
|||
require_once("../inc/util.inc");
|
||||
|
||||
page_head("BBCode tags");
|
||||
?>
|
||||
echo "
|
||||
|
||||
<p>BBCode tags are a way to specify what kind of formatting you want where on various
|
||||
pages on this project. It's similar to HTML, although simplified for use here. The
|
||||
tags start with a [ (where you would have used < in HTML) and stop with ] (where
|
||||
you would have used > in HTML).</p>
|
||||
<p>
|
||||
BBCode tags let you format text in your profile and message-board postings.
|
||||
It's similar to HTML, but simpler.
|
||||
The tags start with a [ (where you would have used < in HTML)
|
||||
and end with ]
|
||||
(where you would have used > in HTML).</p>
|
||||
<p>Examples:</p>
|
||||
<ul>
|
||||
<li>[b]Bold[/b] to <b>Bold</b></li>
|
||||
<li>[i]Italic[/i] to <i>Italic</i></li>
|
||||
<li>[u]Underline[/u] to <u>Underline</u></li>
|
||||
<li>[size=15]Big text[/size] to <span style="font-size: 15px">Big text</span></li>
|
||||
<li>[color=red]Red text[/color] to <font color="red">Red text</font></li>
|
||||
<li>[url=http://google.com/]Google[/url] to <a href="http://google.com/">Google</a></li>
|
||||
<li>[size=15]Big text[/size] to <span style=\"font-size: 15px\">Big text</span></li>
|
||||
<li>[color=red]Red text[/color] to <font color=\"red\">Red text</font></li>
|
||||
<li>[url=http://google.com/]Google[/url] to <a href=\"http://google.com/\">Google</a></li>
|
||||
<li>[quote]Quoted[/quote] for quoted blocks of text</li>
|
||||
<li>[img]http://some.web.site/pic.jpg[/img] to display an image</li>
|
||||
<li>[code]Code snippet here[/code] to display some code</li>
|
||||
|
@ -26,8 +28,9 @@ you would have used > in HTML).</p>
|
|||
<li>Item 1</li>
|
||||
<li>Item 2</li>
|
||||
</ul>
|
||||
<p>Please note if you mess up and don't close a tag or don't specify a parameter
|
||||
correctly, the raw tag itself will display instead of the formatted text.</p>
|
||||
<?
|
||||
<p>
|
||||
If you don't close a tag or don't specify a parameter correctly,
|
||||
the raw tag itself will display instead of the formatted text.</p>
|
||||
";
|
||||
page_tail();
|
||||
?>
|
||||
|
|
|
@ -292,11 +292,11 @@ int main(int argc, char** argv) {
|
|||
} else if (!strcmp(cmd, "--set_network_mode")) {
|
||||
char* op = next_arg(argc, argv, i);
|
||||
if (!strcmp(op, "always")) {
|
||||
retval = rpc.set_run_mode(RUN_MODE_ALWAYS);
|
||||
retval = rpc.set_network_mode(RUN_MODE_ALWAYS);
|
||||
} else if (!strcmp(op, "auto")) {
|
||||
retval = rpc.set_run_mode(RUN_MODE_AUTO);
|
||||
retval = rpc.set_network_mode(RUN_MODE_AUTO);
|
||||
} else if (!strcmp(op, "never")) {
|
||||
retval = rpc.set_run_mode(RUN_MODE_NEVER);
|
||||
retval = rpc.set_network_mode(RUN_MODE_NEVER);
|
||||
} else {
|
||||
fprintf(stderr, "Unknown op %s\n", op);
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ bool time_to_quit() {
|
|||
return false;
|
||||
}
|
||||
|
||||
// this opens the archive. Only subtle thing is that if the user has
|
||||
// Open an archive. Only subtle thing is that if the user has
|
||||
// asked for compression, then we popen(2) a pipe to gzip or zip.
|
||||
// This does 'in place' compression.
|
||||
//
|
||||
|
@ -189,7 +189,7 @@ void close_archive(const char *filename, FILE*& fp){
|
|||
pclose(fp);
|
||||
}
|
||||
|
||||
fp=NULL;
|
||||
fp = NULL;
|
||||
|
||||
// append appropriate file type
|
||||
sprintf(path, "../archives/%s_%d.xml", filename, time_int);
|
||||
|
@ -210,15 +210,18 @@ void open_all_archives() {
|
|||
int old_time=time_int;
|
||||
|
||||
// make sure we get a NEW value of the file timestamp!
|
||||
//
|
||||
while (old_time == (time_int = (int)time(0))) {
|
||||
sleep(1);
|
||||
}
|
||||
|
||||
// open all the archives.
|
||||
open_archive(WU_FILENAME_PREFIX, wu_stream);
|
||||
open_archive(RESULT_FILENAME_PREFIX, re_stream);
|
||||
open_archive(WU_FILENAME_PREFIX, wu_stream);
|
||||
open_archive(RESULT_FILENAME_PREFIX, re_stream);
|
||||
open_archive(RESULT_INDEX_FILENAME_PREFIX, re_index_stream);
|
||||
open_archive(WU_INDEX_FILENAME_PREFIX, wu_index_stream);
|
||||
open_archive(WU_INDEX_FILENAME_PREFIX, wu_index_stream);
|
||||
fprintf(wu_stream, "<archive>\n");
|
||||
fprintf(re_stream, "<archive>\n");
|
||||
|
||||
return;
|
||||
}
|
||||
|
@ -227,10 +230,12 @@ void open_all_archives() {
|
|||
// pointers to indicate that files are not open.
|
||||
//
|
||||
void close_all_archives() {
|
||||
close_archive(WU_FILENAME_PREFIX, wu_stream);
|
||||
close_archive(RESULT_FILENAME_PREFIX, re_stream);
|
||||
fprintf(wu_stream, "</archive>\n");
|
||||
fprintf(re_stream, "</archive>\n");
|
||||
close_archive(WU_FILENAME_PREFIX, wu_stream);
|
||||
close_archive(RESULT_FILENAME_PREFIX, re_stream);
|
||||
close_archive(RESULT_INDEX_FILENAME_PREFIX, re_index_stream);
|
||||
close_archive(WU_INDEX_FILENAME_PREFIX, wu_index_stream);
|
||||
close_archive(WU_INDEX_FILENAME_PREFIX, wu_index_stream);
|
||||
log_messages.printf(SCHED_MSG_LOG::NORMAL,
|
||||
"Closed archive files with %d workunits\n",
|
||||
wu_stored_in_file
|
||||
|
@ -242,6 +247,7 @@ void close_all_archives() {
|
|||
|
||||
// The exit handler always calls this at the end to be sure that the
|
||||
// database is closed cleanly.
|
||||
//
|
||||
void close_db_exit_handler() {
|
||||
boinc_db.close();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue