2004-09-13 18:05:54 +00:00
|
|
|
<?php
|
|
|
|
require_once("docutil.php");
|
2006-06-30 20:45:16 +00:00
|
|
|
page_head("Project-specific items in the client GUI");
|
2004-09-13 18:05:54 +00:00
|
|
|
echo "
|
2006-06-30 20:45:16 +00:00
|
|
|
<h2>Web links</h2>
|
2004-09-13 18:05:54 +00:00
|
|
|
<p>
|
2005-01-10 20:46:33 +00:00
|
|
|
<b>GUI URLs</b> is a mechanism that projects to pass URLs to the client,
|
|
|
|
for display as hyperlinks in the GUI.
|
|
|
|
These links will be shown
|
|
|
|
when the project is selected in the <b>Projects</b> tab.
|
2004-09-13 18:05:54 +00:00
|
|
|
<p>
|
2005-01-10 20:46:33 +00:00
|
|
|
To use this feature,
|
|
|
|
include a file 'gui_urls.xml' in the project root directory,
|
2004-09-13 18:05:54 +00:00
|
|
|
with the following form:
|
|
|
|
|
|
|
|
",html_text("
|
|
|
|
<gui_urls>
|
|
|
|
<gui_url>
|
|
|
|
<name>Your account</name>
|
|
|
|
<description>View your account information and credit totals</description>
|
2005-07-20 12:49:45 +00:00
|
|
|
<url>http://foo.project.com/show_user.php?userid=<userid/></url>
|
2004-09-13 18:05:54 +00:00
|
|
|
</gui_url>
|
|
|
|
<gui_url>
|
|
|
|
<name>Help</name>
|
|
|
|
<description>Get help about SETI@home</description>
|
|
|
|
<url>http://foo.project.com/help.php</url>
|
|
|
|
</gui_url>
|
2004-09-27 19:44:40 +00:00
|
|
|
<ifteam>
|
|
|
|
<gui_url>
|
|
|
|
<name>Team</name>
|
|
|
|
<description>Info about <team_name/></description>
|
2005-07-20 12:49:45 +00:00
|
|
|
<url>http://foo.project.com/team_display.php?teamid=<teamid/></url>
|
2004-09-27 19:44:40 +00:00
|
|
|
</gui_url>
|
|
|
|
</ifteam>
|
2004-09-13 18:05:54 +00:00
|
|
|
...
|
|
|
|
</gui_urls>
|
|
|
|
"),"
|
|
|
|
<p>
|
|
|
|
Each entry describes a GUI URL.
|
2005-01-10 20:46:33 +00:00
|
|
|
These URLs (macro-substituted as described below)
|
|
|
|
will be sent to client hosts in the reply to scheduler RPCs.
|
2004-09-27 19:44:40 +00:00
|
|
|
Team-specific entries should be enclosed in
|
2005-01-10 20:46:33 +00:00
|
|
|
<code><ifteam></code>;
|
|
|
|
they will be sent only if the user belongs to a team.
|
2004-09-27 19:44:40 +00:00
|
|
|
<p>
|
|
|
|
The components of a <code><gui_url></code> element are:
|
2004-09-13 18:05:54 +00:00
|
|
|
";
|
|
|
|
list_start();
|
2006-06-03 16:16:13 +00:00
|
|
|
list_item("name", "A short name, used e.g. as a button name or menu item");
|
2004-09-13 18:05:54 +00:00
|
|
|
list_item("description", "An explanation, used e.g. as a rollover popup");
|
|
|
|
list_item("url", "The URL");
|
|
|
|
list_end();
|
|
|
|
echo "
|
|
|
|
All items are macro-substituted as follows:
|
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item(htmlspecialchars("<userid/>"), "The user ID");
|
2004-09-27 19:44:40 +00:00
|
|
|
list_item(htmlspecialchars("<user_name/>"), "The user name");
|
2004-09-13 18:05:54 +00:00
|
|
|
list_item(htmlspecialchars("<teamid/>"), "The team ID");
|
2004-09-27 19:44:40 +00:00
|
|
|
list_item(htmlspecialchars("<team_name/>"), "The team name");
|
2004-09-13 18:05:54 +00:00
|
|
|
list_item(htmlspecialchars("<hostid/>"), "The host ID");
|
2004-11-29 22:26:34 +00:00
|
|
|
list_item(htmlspecialchars("<authenticator/>"), "The user's account key");
|
2004-09-13 18:05:54 +00:00
|
|
|
list_end();
|
2006-06-30 20:45:16 +00:00
|
|
|
echo "
|
|
|
|
<h2>Project files</h2>
|
|
|
|
<p>
|
|
|
|
<b>Project files</b> are associated with a project
|
|
|
|
but not with any application or work item.
|
|
|
|
Typically they are graphics files used by the BOINC Manager.
|
|
|
|
Project files are described by a file <b>project_files.xml</b>
|
|
|
|
in the server project directory, with the following format:
|
|
|
|
".html_text("
|
2006-07-25 21:07:14 +00:00
|
|
|
<file_info>
|
|
|
|
<name>icon32_54.png</name>
|
|
|
|
<url>http://a.b.c/icon_54.png</url>
|
|
|
|
<md5_cksum>1f122d39b0f7e3d264a7ed4becf33b77</md5_cksum>
|
|
|
|
</file_info>
|
2006-06-30 20:45:16 +00:00
|
|
|
<project_files>
|
2006-07-25 21:07:14 +00:00
|
|
|
<file_ref>
|
2006-06-30 20:45:16 +00:00
|
|
|
<open_name>icon32.png</open_name>
|
2006-07-25 21:07:14 +00:00
|
|
|
<file_name>icon32_54.png</file_name>
|
|
|
|
</file_ref>
|
2006-06-30 20:45:16 +00:00
|
|
|
...
|
|
|
|
</project_files>
|
|
|
|
")."
|
|
|
|
<p>
|
|
|
|
This file is included verbatim in all scheduler RPC replies.
|
|
|
|
<p>
|
|
|
|
The semantics are: after a scheduler RPC, the client downloads any
|
|
|
|
project files that it doesn't already have, and creates symbolic links
|
|
|
|
to them (in the project directory) with the given name.
|
|
|
|
It garbage-collects old files that aren't listed anymore.
|
|
|
|
";
|
2004-09-13 18:05:54 +00:00
|
|
|
page_tail();
|
|
|
|
?>
|