2009-10-13 18:44:58 +00:00
|
|
|
<?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
|
|
|
|
//
|
2010-07-21 19:05:06 +00:00
|
|
|
// $controlid is the control identifier for the control that captured
|
2009-10-13 18:44:58 +00:00
|
|
|
// 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;
|
2010-07-21 19:05:06 +00:00
|
|
|
$controlid = null;
|
2009-10-13 18:44:58 +00:00
|
|
|
|
|
|
|
if (isset($_GET['target'])) $target = $_GET['target'];
|
|
|
|
if (isset($_GET['version'])) $version = $_GET['version'];
|
2010-07-21 19:05:06 +00:00
|
|
|
if (isset($_GET['controlid'])) $controlid = $_GET['controlid'];
|
2009-10-13 18:44:58 +00:00
|
|
|
|
2011-06-15 03:05:17 +00:00
|
|
|
if ($target == "notice") {
|
|
|
|
if ($controlid == 'download') {
|
|
|
|
header('Location: http://boinc.berkeley.edu/download.php');
|
|
|
|
} else if ($controlid == 'statefile') {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
|
|
|
} else if ($controlid == 'proxy_env') {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Client_configuration#Environment_variables');
|
|
|
|
} else if ($controlid == 'app_info') {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Anonymous_platform');
|
|
|
|
} else if ($controlid == 'remote_hosts') {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Controlling_BOINC_remotely');
|
|
|
|
} else if ($controlid == 'log_flags') {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Client_configuration#Logging_flags');
|
|
|
|
} else if ($controlid == 'config') {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Client_configuration#Configuration_file');
|
|
|
|
} else {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
|
|
|
}
|
|
|
|
} else if ($target == "advanced_preferences") {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Preferences');
|
|
|
|
} else if (($target == "advanced") && version_compare($version, "5.10.0", ">=") && version_compare($version, "6.12.0", "<=")) {
|
2010-07-21 19:05:06 +00:00
|
|
|
if ($controlid == "6024") {
|
2009-10-13 18:56:14 +00:00
|
|
|
header('Location: http://boinc.berkeley.edu');
|
2010-07-21 19:05:06 +00:00
|
|
|
} else if ($controlid == "6025") {
|
2011-06-15 16:04:42 +00:00
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Advanced_view_6_10');
|
2010-07-21 19:05:06 +00:00
|
|
|
} else if ($controlid == "6035") {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
2009-10-13 18:56:14 +00:00
|
|
|
} else {
|
2011-06-15 16:04:42 +00:00
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Advanced_view_6_10');
|
2009-10-13 18:56:14 +00:00
|
|
|
}
|
2011-06-15 03:05:17 +00:00
|
|
|
} else if (($target == "simple") && version_compare($version, "5.10.0", ">=") && version_compare($version, "6.12.0", "<=")) {
|
|
|
|
if ($controlid == "6024") {
|
|
|
|
header('Location: http://boinc.berkeley.edu');
|
|
|
|
} else if ($controlid == "6025") {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Simple_view');
|
|
|
|
} else if ($controlid == "6035") {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
|
|
|
} else {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
|
|
|
}
|
2009-10-13 18:44:58 +00:00
|
|
|
} else {
|
|
|
|
if ($target == "advanced") {
|
2011-06-15 03:05:17 +00:00
|
|
|
if ($controlid == "6024") {
|
|
|
|
header('Location: http://boinc.berkeley.edu');
|
|
|
|
} else if ($controlid == "6025") {
|
2011-06-20 15:03:39 +00:00
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Advanced_view');
|
2011-06-15 03:05:17 +00:00
|
|
|
} else if ($controlid == "6035") {
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
|
|
|
} else {
|
2011-06-20 15:03:39 +00:00
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/Advanced_view');
|
2011-06-15 03:05:17 +00:00
|
|
|
}
|
|
|
|
} else if ($target == "simple") {
|
|
|
|
if ($controlid == "6024") {
|
|
|
|
// "Show info about BOINC" item on Mac simple-view menu
|
|
|
|
//
|
|
|
|
header('Location: http://boinc.berkeley.edu');
|
|
|
|
} else if ($controlid == "6025") {
|
|
|
|
// "Show info about BOINC manager" item on Mac simple-view menu
|
|
|
|
//
|
|
|
|
header('Location: http://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: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
|
|
|
} else {
|
|
|
|
// the question-mark button
|
|
|
|
//
|
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
|
|
|
}
|
|
|
|
} else {
|
2010-07-21 19:05:06 +00:00
|
|
|
header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
|
2009-10-13 18:44:58 +00:00
|
|
|
}
|
|
|
|
}
|
2010-07-21 19:05:06 +00:00
|
|
|
|
|
|
|
?>
|