2004-09-13 18:05:54 +00:00
|
|
|
<?php
|
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("GUI URLs");
|
|
|
|
echo "
|
|
|
|
<p>
|
|
|
|
<b>GUI URLs</b> is a mechanism allowing projects to pass URLs to the client,
|
|
|
|
for display as links in the GUI.
|
|
|
|
<p>
|
|
|
|
Projects can includes a file 'gui_urls.xml' in the project root directory,
|
|
|
|
with the following form:
|
|
|
|
|
|
|
|
",html_text("
|
|
|
|
<gui_urls>
|
|
|
|
<gui_url>
|
|
|
|
<name>Your account</name>
|
|
|
|
<description>View your account information and credit totals</description>
|
|
|
|
<url>http://foo.project.com/blah.php?userid=<userid></url>
|
|
|
|
</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>
|
|
|
|
<url>http://foo.project.com/team.php?teamid=<teamid/></url>
|
|
|
|
</gui_url>
|
|
|
|
</ifteam>
|
2004-09-13 18:05:54 +00:00
|
|
|
...
|
|
|
|
</gui_urls>
|
|
|
|
"),"
|
|
|
|
<p>
|
|
|
|
Each entry describes a GUI URL.
|
2004-09-27 19:44:40 +00:00
|
|
|
Team-specific entries should be enclosed in
|
|
|
|
<code><ifteam></code>.
|
|
|
|
<p>
|
|
|
|
The components of a <code><gui_url></code> element are:
|
2004-09-13 18:05:54 +00:00
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item("name", "A short name, used e.g. as a menu item");
|
|
|
|
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");
|
|
|
|
list_item(htmlspecialchars("<authenticator/>"), "The user's account ID");
|
|
|
|
list_end();
|
|
|
|
page_tail();
|
|
|
|
?>
|