-
Notifications
You must be signed in to change notification settings - Fork 9
/
addons.php
79 lines (71 loc) · 1.94 KB
/
addons.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
<?php
require_once("../inc/util.inc");
require_once("addon_data.php");
$strip_header = get_str('strip_header', true);
if (!$strip_header) {
$is_login_page = true;
page_head('BOINC add-on software');
echo "
<p>
The following programs complement or enhance BOINC,
but were not developed by the BOINC project.
<ul>
<li>
These applications are not endorsed by BOINC and
you use them at your own risk.
<li>
We do not provide instructions for installing or using these applications.
In most cases the author has provided these instructions.
If not, contact the author.
Instructions for installing and running BOINC are
<a href=https://boinc.berkeley.edu/wiki/User_manual>here</a>.
<li>
To submit software for inclusion in this list,
please email <a href=https://github.com/BOINC/boinc/wiki/ProjectPeople>David Anderson</a>.
BOINC provides several
<a href=https://github.com/BOINC/boinc/wiki/SoftwareAddon>APIs for
developing add-on software</a>.
</ul>
";
}
function show_group($name, $list, $short_name) {
echo "
<h2>$name</h2>
";
start_table("table-striped");
echo "
<tr>
<th>Add-on<br><font size=-2>click for info</font></th>
<th>Description</th>
</tr>
";
shuffle($list);
foreach ($list as $item) {
$file = $item[0];
$itemname = $item[1];
$desc = $item[3];
$iname = urlencode($file);
echo "
<tr><td><a href=https://boinc.berkeley.edu/addon_item.php?platform=$short_name&item=$iname>$itemname</a></td>
<td>$desc</td>
</tr>
";
}
end_table();
}
echo "<a name=windows></a>\n";
show_group("Windows", $win, 'win');
echo "<a name=linux></a>\n";
show_group("Linux", $linux, 'linux');
echo "<a name=mac></a>\n";
show_group("Mac", $mac, 'mac');
echo "<a name=mobile></a>\n";
show_group("Mobile", $mobile, 'mobile');
echo "<a name=browser></a>\n";
show_group("Web browser toolbars and plugins", $browser, 'browser');
echo "<a name=web></a>\n";
show_group("Web applications", $web, 'web');
if (!$strip_header) {
page_tail();
}
?>