~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to doc/manager_links.php

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
//
 
3
// This page redirects help requests from the stock BOINC manager
 
4
//
 
5
//
 
6
// $target can be any of the following:
 
7
//   advanced = advanced GUI help requests
 
8
//   simple = simple GUI help requests
 
9
//
 
10
// $version is the verson number of the BOINC Manager requesting help.
 
11
//   Only valid for BOINC Manager 5.9.3 or better
 
12
//
 
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.
 
16
//
 
17
 
 
18
$target = null;
 
19
$version = null;
 
20
$controlid = null;
 
21
 
 
22
if (isset($_GET['target'])) $target = $_GET['target'];
 
23
if (isset($_GET['version'])) $version = $_GET['version'];
 
24
if (isset($_GET['controlid'])) $controlid = $_GET['controlid'];
 
25
 
 
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');
 
33
        } else {
 
34
                header('Location: http://boinc.berkeley.edu/wiki/Advanced_view');
 
35
        }
 
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
 
39
        //
 
40
        header('Location: http://boinc.berkeley.edu');
 
41
    } else if ($controlid == "6025") {
 
42
        // "Show info about BOINC manager" item on Mac simple-view menu
 
43
        //
 
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?
 
48
        //
 
49
        header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
 
50
    } else {
 
51
        // the question-mark button
 
52
        //
 
53
        header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
 
54
    }
 
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');
 
72
    } else {
 
73
        header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
 
74
    }
 
75
} else {
 
76
    if ($target == "advanced") {
 
77
        header('Location: http://boinc.berkeley.edu/wiki/Advanced_view');
 
78
    } else {
 
79
        header('Location: http://boinc.berkeley.edu/wiki/BOINC_Help');
 
80
    }
 
81
}
 
82
 
 
83
?>