Repository navigation
Expand file tree
/
Copy pathdownload.php
More file actions
216 lines (203 loc) · 6.66 KB
/
Copy pathdownload.php
File metadata and controls
216 lines (203 loc) · 6.66 KB
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<?php
include( "top.php" );
/**
* Global variables referenced in this script.
* @global $g_docs_admin_guide
* @global $g_docs_path
* @global $g_docs_url
* @global $g_latest_version_stable
* @global $g_latest_version_dev_roadmap
*/
/**
* Print URL for SourceForge downloads
* @param null $p_version Optional version number (= subdirectory)
* @param bool $p_stable True = stable, false = development
*/
function print_sourceforge_url( $p_version = null, bool $p_stable = true ): void {
$t_sf_url = 'https://sourceforge.net/projects/mantisbt/files/mantis-%s/%s';
if( $p_version ) {
$p_version .= '/';
}
printf( $t_sf_url,
$p_stable ? 'stable' : 'development',
$p_version
);
}
?>
<!--suppress HtmlUnknownTarget -->
<div class="row show-grid clear-both">
<div class="col-sm-7 col-md-8">
<h1>Stable Release
<small>| Get on latest!</small>
</h1>
<p>
This is the latest stable MantisBT release.
Make sure you are running the latest release to benefit from all
security fixes, bug fixes, and new features.
</p>
<h3>Additional Resources:</h3>
<ul class="icons">
<li>
<i class="icon-book"></i>
<a href="<?php echo $g_docs_url, $g_docs_path, $g_docs_admin_guide; ?>/html-desktop/#admin.install.upgrade">How to upgrade?</a>
</li>
<li>
<i class="icon-paper-clip"></i>
<a href="<?php echo $g_bugs_url; ?>changelog_page.php?project=mantisbt&version=<?php echo $g_latest_version_stable; ?>">Changelog</a>
</li>
<li>
<i class="icon-check"></i>
<a href="<?php echo $g_docs_url, $g_docs_path, $g_docs_admin_guide; ?>/html-desktop/#admin.install.requirements">Requirements</a>
</li>
<li>
<i class="icon-key"></i>
<a href="https://github.com/mantisbt/mantisbt/blob/master/KEYS.md"
title="Releases are signed with these keys, use them to verify downloaded files' integrity">
PGP keys
</a>
</li>
</ul>
</div>
<div class="col-sm-5 col-md-4 note-stick stick">
<div style="font-size: 38px;"><i class="icon-bullhorn"></i>
</div>
<br>
<h2 style="font-size: 28px;line-height: 36px">
MantisBT <?php echo $g_latest_version_stable; ?></h2>
<br>
<p>
<a href="<?php print_sourceforge_url( $g_latest_version_stable ); ?>"
onclick="ga('send', 'event', 'Download', 'Download');"
type="button" class="ex btn btn-default btn-inverse">
Download
</a>
</p>
</div>
</div>
<hr>
<?php
if( !empty( $g_latest_version_legacy ) ) {
# Documentation for legacy version is under /docs/master-X.Y.x
$t_legacy_docs_version = explode( '.', $g_latest_version_legacy, 3 );
$t_legacy_docs_version[2] = 'x';
$t_legacy_docs_version = implode( '.', $t_legacy_docs_version );
$t_legacy_docs_path = substr_replace( $g_docs_path,
'-' . $t_legacy_docs_version,
strpos( $g_docs_path, '/' ), 0
);
?>
<div class="row show-grid clear-both">
<div class="col-md-12 col-sm-12">
<h1>Legacy Release
<small> | Security and critical bugs only!</small>
</h1>
<p>Older MantisBT version, which is still supported but only gets
fixes for critical bugs and security issues.
You are strongly advised to upgrade to the latest Stable release
as soon as possible, to benefit from new developments.
</p>
</div>
</div>
<div class="row show-grid clear-both">
<div class="col-sm-8 col-md-8">
<h3>Additional Resources:</h3>
<ul class="icons">
<li>
<i class="icon-paper-clip"></i>
<a href="<?php echo $g_bugs_url; ?>changelog_page.php?project=mantisbt&version=<?php echo $g_latest_version_legacy; ?>">Changelog</a>
</li>
<li>
<i class="icon-check"></i>
<a href="<?php echo $g_docs_url, $t_legacy_docs_path, $g_docs_admin_guide; ?>/html-desktop/#admin.install.requirements">Requirements</a>
</li>
</ul>
</div>
<div class="col-sm-4 col-md-4">
<a href="<?php print_sourceforge_url( $g_latest_version_legacy ); ?>"
onclick="ga('send', 'event', 'Download', 'Download MantisBT');"
type="button" class="btn btn-default btn-warning">
Download MantisBT <?php echo $g_latest_version_legacy; ?>
</a>
</div>
</div>
<hr>
<?php } ?>
<?php if( !empty( $g_latest_version_dev ) ) { ?>
<div class="row show-grid clear-both">
<div class="col-md-12 col-sm-12">
<h1>Development Release
<small>| Bleeding edge for the brave and tech savvy!</small>
</h1>
<p>The latest development release is intended for evaluation and
testing purposes. It is not recommended for
production use, unless you are comfortable with PHP and able to
troubleshoot issues that may arise. </p>
</div>
</div>
<div class="row show-grid clear-both">
<div class="col-sm-8 col-md-8">
<h3>Additional Resources:</h3>
<ul class="icons">
<li>
<i class="icon-road"></i>
<a href="<?php echo $g_bugs_url; ?>roadmap_page.php?project=mantisbt&version=<?php echo $g_latest_version_dev_roadmap; ?>">Roadmap</a>
<li>
<li>
<i class="icon-paper-clip"></i>
<a href="<?php echo $g_bugs_url; ?>changelog_page.php?project=mantisbt&version=<?php echo $g_latest_version_dev; ?>">Changelog</a>
</li>
<li>
<i class="icon-check"></i>
<a href="<?php echo $g_docs_url, $g_docs_path, $g_docs_admin_guide; ?>/html-desktop/#admin.install.requirements">Requirements</a>
</li>
</ul>
</div>
<div class="col-sm-4 col-md-4">
<a href="<?php print_sourceforge_url( $g_latest_version_dev, false ); ?>"
onclick="ga('send', 'event', 'Download', 'Download MantisBT');"
type="button" class="btn btn-default btn-warning">
Download MantisBT <?php echo $g_latest_version_dev; ?>
</a>
</div>
</div>
<hr>
<?php } ?>
<div class="row show-grid clear-both">
<div class="col-md-12 col-sm-12">
<h1>Nightly Builds
<small>| Not Supported - use at your own risk!</small>
</h1>
<p>These are nightly snapshots generated from the latest development
branches in our Git repository. They have
only undergone minimal testing through our Continuous Integration build
process (executing the PHPUnit test suite), and have not been formally
prepared for release; we recommend you only use them for testing
and feedback purposes. </p>
</div>
</div>
<div class="row show-grid clear-both">
<div class="col-sm-8 col-md-8">
<h3>Additional Resources:</h3>
<ul class="icons">
<li>
<i class="icon-github"></i>
<a href="https://github.com/mantisbt/mantisbt">Git Repository</a>
<li>
<li>
<i class="icon-ok"></i>
<a href="https://github.com/mantisbt/mantisbt/actions/workflows/mantisbt.yml">
CI Build Process
</a>
<li>
</ul>
</div>
<div class="col-sm-4 col-md-4">
<a href="builds.php" type="button"
class="btn btn-default btn-warning"
onclick="ga('send', 'event', 'Download', 'Download Nightly Builds');">
Download Nightly Builds
</a>
</div>
</div>
<?php
include( "bot.php" );