forked from BOINC/boinc-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanager_links.php
137 lines (133 loc) · 5.73 KB
/
manager_links.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
//
// This page redirects help requests from the stock BOINC manager
//
//
// $target can be any of the following:
// advanced = advanced GUI help requests
// simple = simple GUI help requests
//
// $version is the verson number of the BOINC Manager requesting help.
// Only valid for BOINC Manager 5.9.3 or better
//
// $controlid is the control identifier for the control that captured
// the context sensitive help request. Please see the Events.h file
// in the clientgui directory for a list of valid control ids.
//
$target = null;
$version = null;
$controlid = null;
if (isset($_GET['target'])) $target = $_GET['target'];
if (isset($_GET['version'])) $version = $_GET['version'];
if (isset($_GET['controlid'])) $controlid = $_GET['controlid'];
if ($target == "notice") {
if ($controlid == 'download') {
header('Location: https://boinc.berkeley.edu/wiki/Release_Notes');
} else if ($controlid == 'statefile') {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
} else if ($controlid == 'proxy_env') {
header('Location: https://boinc.berkeley.edu/wiki/Client_configuration#Environment_variables');
} else if ($controlid == 'app_info') {
header('Location: https://boinc.berkeley.edu/wiki/Anonymous_platform');
} else if ($controlid == 'remote_hosts') {
header('Location: https://boinc.berkeley.edu/wiki/Controlling_BOINC_remotely');
} else if ($controlid == 'log_flags') {
header('Location: https://boinc.berkeley.edu/wiki/Client_configuration#Logging_flags');
} else if ($controlid == 'config') {
header('Location: https://boinc.berkeley.edu/wiki/Client_configuration#Configuration_file');
} else {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
}
} else if ($target == "advanced_preferences") {
header('Location: https://boinc.berkeley.edu/wiki/Local_preferences#Advanced_view');
} else if ($target == "simple_preferences") {
header('Location: https://boinc.berkeley.edu/wiki/Local_preferences#Simple_view');
} else if (($target == "advanced") && version_compare($version, "5.10.0", ">=") && version_compare($version, "6.12.0", "<")) {
if ($controlid == "6024") {
header('Location: https://boinc.berkeley.edu');
} else if ($controlid == "6025") {
header('Location: https://boinc.berkeley.edu/wiki/Advanced_view_6_10');
} else if ($controlid == "6035") {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
} else {
header('Location: https://boinc.berkeley.edu/wiki/Advanced_view_6_10');
}
} else if (($target == "simple") && version_compare($version, "5.10.0", ">=") && version_compare($version, "6.12.0", "<")) {
if ($controlid == "6024") {
header('Location: https://boinc.berkeley.edu');
} else if ($controlid == "6025") {
header('Location: https://boinc.berkeley.edu/wiki/Simple_view');
} else if ($controlid == "6035") {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
} else {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
}
} else if (($target == "advanced") && version_compare($version, "6.12.0", ">=") && version_compare($version, "7.0.0", "<")) {
if ($controlid == "6024") {
header('Location: https://boinc.berkeley.edu');
} else if ($controlid == "6025") {
header('Location: https://boinc.berkeley.edu/wiki/Advanced_view_6_12');
} else if ($controlid == "6035") {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
} else {
header('Location: https://boinc.berkeley.edu/wiki/Advanced_view_6_12');
}
} else if (($target == "simple") && version_compare($version, "6.12.0", ">=") && version_compare($version, "7.0.0", "<")) {
if ($controlid == "6024") {
header('Location: https://boinc.berkeley.edu');
} else if ($controlid == "6025") {
header('Location: https://boinc.berkeley.edu/wiki/Simple_view_6_12');
} else if ($controlid == "6035") {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
} else {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
}
} else if (($target == "simple") && version_compare($version, "7.2.0", ">=") && version_compare($version, "7.4.0", "<")) {
if ($controlid == "6024") {
header('Location: https://boinc.berkeley.edu');
} else if ($controlid == "6025") {
header('Location: https://boinc.berkeley.edu/wiki/Simple_view');
} else if ($controlid == "6035") {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
} else {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
}
} else {
if ($target == "advanced") {
if ($controlid == "6024") {
header('Location: https://boinc.berkeley.edu');
} else if ($controlid == "6025") {
header('Location: https://boinc.berkeley.edu/wiki/Advanced_view');
} else if ($controlid == "6035") {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
} else {
header('Location: https://boinc.berkeley.edu/wiki/Advanced_view');
}
} else if ($target == "simple") {
if ($controlid == "6024") {
// "Show info about BOINC" item on Mac simple-view menu
//
header('Location: https://boinc.berkeley.edu');
} else if ($controlid == "6025") {
// "Show info about BOINC manager" item on Mac simple-view menu
//
header('Location: https://boinc.berkeley.edu/wiki/Simple_view');
} else if ($controlid == "6035") {
// "Show info about BOINC and BOINC Manager"
// item on Mac simple-view menu ?? do we need this item?
//
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
} else if ($controlid >= "6400" && $controlid <= "6499") {
// Any control that has focus in the simple view
//
header('Location: https://boinc.berkeley.edu/wiki/Simple_view');
} else {
// the question-mark button
//
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
}
} else {
header('Location: https://boinc.berkeley.edu/wiki/BOINC_Help');
}
}
?>