-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathmanager_links.php
86 lines (82 loc) · 3.34 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
<?php
//
// This page redirects help requests from the BOINC manager
//
// $target can be any of the following:
// advanced = advanced GUI help requests
// simple = simple GUI help requests
//
// $version is the version 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/download.php');
} else if ($controlid == 'statefile') {
header('Location: https://github.com/BOINC/boinc/wiki/BOINC-Help');
} else if ($controlid == 'proxy_env') {
header('Location: https://github.com/BOINC/boinc/wiki/Client_configuration#environment-variables');
} else if ($controlid == 'app_info') {
header('Location: https://github.com/BOINC/boinc/wiki/Anonymous_platform');
} else if ($controlid == 'remote_hosts') {
header('Location: https://github.com/BOINC/boinc/wiki/Controlling_BOINC_remotely');
} else if ($controlid == 'log_flags') {
header('Location: https://github.com/BOINC/boinc/wiki/Client_configuration#Logging-flags');
} else if ($controlid == 'config') {
header('Location: https://github.com/BOINC/boinc/wiki/Client_configuration#Configuration-files');
} else {
header('Location: https://github.com/BOINC/boinc/wiki/BOINC-Help');
}
} else if ($target == "advanced_preferences") {
header('Location: https://github.com/BOINC/boinc/wiki/Preferences');
} else if ($target == "simple_preferences") {
header('Location: https://github.com/BOINC/boinc/wiki/Preferences');
} else {
if ($target == "advanced") {
if ($controlid == "6024") {
header('Location: https://boinc.berkeley.edu');
} else if ($controlid == "6025") {
header('Location: https://github.com/BOINC/boinc/wiki/Advanced-view');
} else if ($controlid == "6035") {
header('Location: https://github.com/BOINC/boinc/wiki/BOINC-Help');
} else {
header('Location: https://github.com/BOINC/boinc/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://github.com/BOINC/boinc/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://github.com/BOINC/boinc/wiki/BOINC-Help');
} else if ($controlid >= "6400" && $controlid <= "6499") {
// Any control that has focus in the simple view
//
header('Location: https://github.com/BOINC/boinc/wiki/Simple-view');
} else {
// the question-mark button
//
header('Location: https://github.com/BOINC/boinc/wiki/BOINC-Help');
}
} else {
header('Location: https://github.com/BOINC/boinc/wiki/BOINC-Help');
}
}
?>