1
0
mirror of https://github.com/php/web-php.git synced 2026-04-28 09:23:14 +02:00
Files
archived-web-php/downloads.php
T
Adam Harvey 266cb08204 Update the downloads UI.
Squashed commit of the following:

commit fea7d676210836b0b56e9a996006d88e3ac7780a
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Nov 21 13:13:41 2013 -0800

    Fix the heading selector when dropping the Stable text.

commit 49d0d166ed06083f51de2901344223e8bed61342
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Nov 21 13:09:49 2013 -0800

    Fix borders.

commit 7041fbf6ebad84023398a3e78734c1c76eaf4f34
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Nov 21 13:06:21 2013 -0800

    Further tinkering.

commit 651a57b6f7b93b56cddd477cbf1d66743cfb18f7
Author: Adam Harvey <aharvey@php.net>
Date:   Thu Nov 21 12:36:23 2013 -0800

    Tinker with the downloads page.
2013-11-21 16:44:42 -08:00

141 lines
4.9 KiB
PHP

<?php // vim: et
// $Id$
$_SERVER['BASE_PAGE'] = 'downloads.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
// Try to make this page non-cached
header_nocache();
$SHOW_COUNT = 3;
$MAJOR = 5;
$releases = array_slice($RELEASES[$MAJOR], 0, $SHOW_COUNT);
$gpg = array(
"5.5" => <<< GPG
pub 2048R/90D90EC1 2013-07-18 [expire : 2016-07-17]
Key fingerprint = 0BD7 8B5F 9750 0D45 0838 F95D FE85 7D9A 90D9 0EC1
uid Julien Pauli &lt;jpauli@php.net&gt;
pub 4096R/7267B52D 2012-03-20 [expires: 2016-03-19]
Key fingerprint = 0B96 609E 270F 565C 1329 2B24 C13C 70B8 7267 B52D
uid David Soria Parra &lt;dsp@php.net&gt;
GPG
,
"5.4" => <<< GPG
pub 2048D/5DA04B5D 2012-03-19
Key fingerprint = F382 5282 6ACD 957E F380 D39F 2F79 56BC 5DA0 4B5D
uid Stanislav Malyshev (PHP key) &lt;smalyshev@gmail.com&gt;
uid Stanislav Malyshev (PHP key) &lt;stas@php.net&gt;
uid Stanislav Malyshev (PHP key) &lt;smalyshev@sugarcrm.com&gt;
GPG
,
"5.3" => <<< GPG
pub 4096R/7267B52D 2012-03-20 [expires: 2016-03-19]
Key fingerprint = 0B96 609E 270F 565C 1329 2B24 C13C 70B8 7267 B52D
uid David Soria Parra &lt;dsp@php.net&gt;
pub 2048R/FC9C83D7 2012-03-18 [expires: 2017-03-17]
Key fingerprint = 0A95 E9A0 2654 2D53 835E 3F3A 7DEC 4E69 FC9C 83D7
uid Johannes Schlüter &lt;johannes@schlueters.de&gt;
uid Johannes Schlüter &lt;johannes@php.net&gt;
GPG
);
$SIDEBAR_DATA = '
<p class="panel"><a href="download-docs.php">Documentation download</a></p>
<p class="panel"><a href="download-logos.php">PHP logos</a></p>
<p class="panel"><a href="http://snaps.php.net/">Development Snapshots</a></a>
<p class="panel"><a href="/git.php">Development sources (git)</a></a>
<p class="panel"><a href="/releases/">Old archives</a></p>
<div class="otherbins">
<p class="announcements">
We do not distribute UNIX/Linux binaries. Most Linux
distributions come with PHP these days, so if you do
not want to compile your own, go to your distribution\'s
download site. Binaries available on external servers:
</p>
<p class="panel"><a href="http://windows.php.net">Windows Binaries</a></p>
<ul class="toc">
<li class="panel"><a href="http://www.ampps.com/">Mac OS X (AMPPS)</a></li>
<li class="panel"><a href="http://www.mamp.info/">Mac OS X (MAMP)</a></li>
<li class="panel"><a href="http://bitnami.com/stack/mamp">Mac OS X (BitNami)</a></li>
<li class="panel"><a href="http://bitnami.com/stack/wamp">Windows (BitNami)</a></li>
<li class="panel"><a href="http://bitnami.com/stack/lamp">Linux (BitNami)</a></li>
<li class="panel"><a href="http://www.opencsw.org/packages/php5">Solaris OpenCSW packages</a></li>
<li class="panel"><a href="http://iuscommunity.org/">Redhat/CentOS Binaries (IUS)</a></li>
<li class="panel"><a href="http://rpms.famillecollet.com/">Fedora/Redhat/CentOS Binaries (Remi)</a></li>
</ul>
</div>
';
site_header("Downloads",
array(
'link' => array(
array(
"rel" => "alternate",
"type" => "application/atom+xml",
"href" => $MYSITE . "releases/feed.php",
"title" => "PHP Release feed"
),
),
"current" => "downloads",
)
);
?>
<a id="v5"></a>
<?php $i = 0; foreach ($releases as $v => $a): ?>
<?php $mver = substr($v, 0, strrpos($v, '.')); ?>
<?php $stable = $i++ === 0 ? "Current Stable" : "Old Stable"; ?>
<div class="download-box">
<h3 id="v<?php echo $v; ?>">
<span class="release-state"><?php echo $stable; ?></span>
PHP <?php echo $v; ?>
(<a href="/ChangeLog-<?php echo $MAJOR; ?>.php#<?php echo urlencode($v); ?>" class="changelog">Changelog</a>)
</h3>
<ul>
<?php foreach ($a['source'] as $rel): ?>
<li>
<?php download_link($rel['filename'], $rel['filename']); ?>
<span class="releasedate"><?php echo $rel['date']; ?></span>
<span class="md5sum"><?php echo $rel['md5']; ?></span>
<?php if (isset($rel['note']) && $rel['note']): ?>
<p>
<strong>Note:</strong>
<?php echo $rel['note']; ?>
</p>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<a href="#gpg-<?php echo $mver; ?>">GPG Keys for PHP <?php echo $mver; ?></a>
</div>
<?php endforeach; ?>
<hr/>
<h2>GPG Keys</h2>
<p>
The releases are tagged and signed in the <a href='git.php'>PHP Git Repository</a>.
The following official GnuPG keys of the current PHP Release Manager can be used
to verify the tags:
</p>
<?php foreach ($gpg as $branch => $data): ?>
<div class="download-box">
<h3 id="gpg-<?php echo $branch; ?>">PHP <?php echo $branch; ?></h3>
<pre>
<?php echo $data; ?>
</pre>
</div>
<?php endforeach; ?>
<?php
site_footer(array('sidebar' => $SIDEBAR_DATA));