2005-09-21 21:39:35 +00:00
|
|
|
<?php
|
|
|
|
require_once("docutil.php");
|
2006-09-06 17:18:51 +00:00
|
|
|
page_head("Project configuration web RPC");
|
2005-09-21 21:39:35 +00:00
|
|
|
echo "
|
2006-09-06 17:18:51 +00:00
|
|
|
Each BOINC project and account manager exports
|
|
|
|
a few configuration items via a web RPC;
|
|
|
|
namely, it must provide an XML document at the address
|
2005-09-21 21:39:35 +00:00
|
|
|
<pre>
|
2006-05-15 00:27:15 +00:00
|
|
|
http://PROJECT_URL/get_project_config.php
|
2005-09-21 21:39:35 +00:00
|
|
|
</pre>
|
2006-09-06 17:18:51 +00:00
|
|
|
This file is created by <a href=make_project.php>make_project</a>,
|
|
|
|
and in most cases you don't have to change it.
|
|
|
|
|
|
|
|
<p>
|
2005-09-21 21:39:35 +00:00
|
|
|
This document has the structure
|
|
|
|
".html_text("
|
|
|
|
<project_config>
|
|
|
|
<name>Project name</name>
|
|
|
|
[ <min_passwd_length>N</min_passwd_length> ]
|
|
|
|
[ <account_manager/> ]
|
|
|
|
[ <uses_username/> ]
|
|
|
|
[ <account_creation_disabled/> ]
|
2006-09-06 17:18:51 +00:00
|
|
|
[ <client_account_creation_disabled/> ]
|
2006-05-15 00:27:15 +00:00
|
|
|
[ <rpc_prefix>URL</rpc_prefix> ]
|
2005-09-21 21:39:35 +00:00
|
|
|
[ <error_num>N</error_num> ]
|
2006-06-01 19:59:57 +00:00
|
|
|
[
|
|
|
|
<system_requirements>
|
|
|
|
[ <p_fpops>N</p_fpops> ]
|
|
|
|
[ <p_iops>N</p_iops> ]
|
|
|
|
[ <p_membw>N</p_membw> ]
|
|
|
|
[ <m_nbytes>N</m_nbytes> ]
|
|
|
|
[ <m_swap>N</m_swap> ]
|
|
|
|
[ <d_free>N</d_free> ]
|
|
|
|
[ <bwup>N</bwup> ]
|
|
|
|
[ <bwdown>N</bwdown> ]
|
|
|
|
</system_requirements>
|
|
|
|
]
|
2006-06-02 20:32:20 +00:00
|
|
|
[
|
|
|
|
<platforms>
|
|
|
|
<platform>windows_intelx86</platform>
|
|
|
|
<platform>i686-pc-linux-gnu powerpc-apple-darwin</platform>
|
|
|
|
...
|
|
|
|
</platforms>
|
|
|
|
]
|
2005-09-21 21:39:35 +00:00
|
|
|
</project_config>
|
|
|
|
")."
|
|
|
|
The elements are:
|
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item("name", "Project name");
|
|
|
|
list_item("account_manager",
|
|
|
|
"If present, this is an account manager, not a BOINC project"
|
|
|
|
);
|
|
|
|
list_item("uses_username",
|
|
|
|
"If present, this project uses names (rather than email addresses)
|
|
|
|
as the primary account identifier"
|
|
|
|
);
|
|
|
|
list_item("account_creation_disabled",
|
|
|
|
"If present, this project is not allowing creation of new accounts"
|
|
|
|
);
|
2006-09-06 17:18:51 +00:00
|
|
|
list_item("client_account_creation_disabled",
|
|
|
|
"If present, new accounts can be created only via the web
|
|
|
|
(not via the client software)."
|
|
|
|
);
|
2005-09-21 21:39:35 +00:00
|
|
|
list_item("min_passwd_length",
|
|
|
|
"Minimum password length (for new account creation)"
|
|
|
|
);
|
2006-05-15 00:27:15 +00:00
|
|
|
list_item("rpc_prefix",
|
|
|
|
"Prefix to use for web RPCs, instead of the master URL."
|
|
|
|
);
|
2005-09-21 21:39:35 +00:00
|
|
|
list_item("error_num",
|
|
|
|
"The project is currently down. A BOINC error number is returned."
|
|
|
|
);
|
2006-06-01 19:59:57 +00:00
|
|
|
list_item("system_requirements",
|
|
|
|
"Hardware requirements for participating in this project.
|
|
|
|
If a computer doesn't meet these requirements it may not
|
|
|
|
get sent any work by the project.
|
|
|
|
All requirements are 'net'; e.g. the CPU requirements
|
2006-06-14 23:17:37 +00:00
|
|
|
are after factors like <a href=sched.php>on-fraction, active-fraction</a>,
|
2006-09-06 17:18:51 +00:00
|
|
|
and resource share have been taken into consideration.
|
|
|
|
NOT IMPLEMENTED YET."
|
2006-06-01 19:59:57 +00:00
|
|
|
);
|
2006-06-02 20:32:20 +00:00
|
|
|
list_item("platforms",
|
2006-09-06 17:18:51 +00:00
|
|
|
"A list of platforms for which the project has application versions.
|
|
|
|
NOT IMPLEMENTED YET."
|
2006-06-02 20:32:20 +00:00
|
|
|
);
|
2005-09-21 21:39:35 +00:00
|
|
|
list_end();
|
|
|
|
echo "
|
|
|
|
The BOINC distribution includes a file
|
|
|
|
<b>html/user/sample_get_project_config.php</b>
|
|
|
|
that supplies reasonable default values for BOINC projects.
|
|
|
|
To use this, rename it to <b>get_project_config.php</b>
|
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|