mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
111 lines
3.4 KiB
PHP
111 lines
3.4 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/gpg-keys.inc';
|
|
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc';
|
|
|
|
// Try to make this page non-cached
|
|
header_nocache();
|
|
|
|
$SHOW_COUNT = 4;
|
|
$MAJOR = 5;
|
|
|
|
$releases = array_slice($RELEASES[$MAJOR], 0, $SHOW_COUNT);
|
|
|
|
$SIDEBAR_DATA = '
|
|
<div class="panel">
|
|
<a href="/supported-versions.php">Supported Versions</a>
|
|
<div class="body">
|
|
Check the <a href="/supported-versions.php">supported versions</a> page for
|
|
more information on the support lifetime of each version of PHP.
|
|
</div>
|
|
</div>
|
|
|
|
<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></p>
|
|
<p class="panel"><a href="/git.php">Development sources (git)</a></p>
|
|
<p class="panel"><a href="/releases/">Old archives</a></p>
|
|
';
|
|
|
|
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"; ?>
|
|
|
|
<h3 id="v<?php echo $v; ?>" class="title">
|
|
<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>
|
|
<div class="content-box">
|
|
|
|
<ul>
|
|
<?php foreach ($a['source'] as $rel): ?>
|
|
<li>
|
|
<?php download_link($rel['filename'], $rel['filename']); ?>
|
|
<span class="releasedate"><?php echo date('d M Y', strtotime($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; ?>
|
|
<li>
|
|
<a href="http://windows.php.net/download#php-<?php echo urlencode($mver); ?>">
|
|
Windows downloads
|
|
</a>
|
|
</li>
|
|
</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 ($RELEASES[$MAJOR] as $v => $_): ?>
|
|
<?php $branch = implode('.', array_slice(explode('.', $v), 0, 2)); ?>
|
|
<?php if (isset($GPG_KEYS[$branch])): ?>
|
|
<h3 id="gpg-<?php echo $branch; ?>" class="content-header">PHP <?php echo $branch; ?></h3>
|
|
<div class="content-box">
|
|
<pre>
|
|
<?php echo $GPG_KEYS[$branch]; ?>
|
|
</pre>
|
|
</div>
|
|
<?php endif ?>
|
|
<?php endforeach ?>
|
|
<p>
|
|
<a href="gpg-keys.php">
|
|
A full list of GPG keys used for current and older releases is also
|
|
available.
|
|
</a>
|
|
</p>
|
|
|
|
<?php
|
|
site_footer(array('sidebar' => $SIDEBAR_DATA));
|