3
// This page redirects help requests from the stock BOINC manager
6
// $target can be any of the following:
7
// advanced = advanced GUI help requests
8
// simple = simple GUI help requests
10
// $version is the verson number of the BOINC Manager requesting help.
11
// Only valid for BOINC Manager 5.9.3 or better
13
// $controlid is the control identifier for the control that captured
14
// the context sensitive help request. Please see the Events.h file
15
// in the clientgui directory for a list of valid control ids.
22
if (isset($_GET['target'])) $target = $_GET['target'];
23
if (isset($_GET['version'])) $version = $_GET['version'];
24
if (isset($_GET['controlid'])) $controlid = $_GET['controlid'];
26
if (($target == "advanced") && version_compare($version, "5.10.0", ">=")) {
27
if ($controlid == "6024") {
28
header('Location: http://boinc.berkeley.edu');
29
} else if ($controlid == "6025") {
30
header('Location: http://boinc.berkeley.edu/wiki/Advanced_view');
31
} else if ($controlid == "6035") {
32
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
34
header('Location: http://boinc.berkeley.edu/wiki/Advanced_view');
36
} else if (($target == "simple") && version_compare($version, "6.2.0", ">=")) {
37
if ($controlid == "6024") {
38
// "Show info about BOINC" item on Mac simple-view menu
40
header('Location: http://boinc.berkeley.edu');
41
} else if ($controlid == "6025") {
42
// "Show info about BOINC manager" item on Mac simple-view menu
44
header('Location: http://boinc.berkeley.edu/wiki/Simple_view');
45
} else if ($controlid == "6035") {
46
// "Show info about BOINC and BOINC Manager"
47
// item on Mac simple-view menu ?? do we need this item?
49
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
51
// the question-mark button
53
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
55
} else if ($target == "advanced_preferences") {
56
header('Location: http://boinc.berkeley.edu/wiki/Preferences');
57
} else if ($target == "notice") {
58
if ($controlid == 'download') {
59
header('Location: http://boinc.berkeley.edu/download.php');
60
} else if ($controlid == 'statefile') {
61
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
62
} else if ($controlid == 'proxy_env') {
63
header('Location: http://boinc.berkeley.edu/wiki/Client_configuration#Environment_variables');
64
} else if ($controlid == 'app_info') {
65
header('Location: http://boinc.berkeley.edu/wiki/Anonymous_platform');
66
} else if ($controlid == 'remote_hosts') {
67
header('Location: http://boinc.berkeley.edu/wiki/Controlling_BOINC_remotely');
68
} else if ($controlid == 'log_flags') {
69
header('Location: http://boinc.berkeley.edu/wiki/Client_configuration#Logging_flags');
70
} else if ($controlid == 'config') {
71
header('Location: http://boinc.berkeley.edu/wiki/Client_configuration#Configuration_file');
73
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
76
if ($target == "advanced") {
77
header('Location: http://boinc.berkeley.edu/wiki/Advanced_view');
79
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');