cvs: phpweb / downloads.php /include version.inc

From: Date: Wed, 21 Feb 2007 16:18:25 +0000
Subject: cvs: phpweb / downloads.php /include version.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-34421@lists.php.net to get a copy of this message
bjori Wed Feb 21 16:18:25 2007 UTC Modified files: /phpweb/include version.inc /phpweb downloads.php Log: Fix hardcoded release announcement link # and make it point to the new url http://cvs.php.net/viewvc.cgi/phpweb/include/version.inc?r1=1.1&r2=1.2&diff_format=u Index: phpweb/include/version.inc diff -u phpweb/include/version.inc:1.1 phpweb/include/version.inc:1.2 --- phpweb/include/version.inc:1.1 Sun Feb 18 16:58:04 2007 +++ phpweb/include/version.inc Wed Feb 21 16:18:25 2007 @@ -1,4 +1,4 @@ -<?php +<?php // vim: et /* The format is: * array( * "major release number" => array( @@ -10,6 +10,7 @@ * "date" => "this files release date", * "notes" => "this file was updated 29feb due to broken phar files..", * ), + * "announcement" => "bool, release announcement exists in releases/?" * ), * ), * ); @@ -17,6 +18,7 @@ $RELEASES = array( 5 => array( "5.2.1" => array( + "announcement" => true, "source" => array( array( "filename" => "php-5.2.1.tar.bz2", @@ -69,6 +71,7 @@ ), 4 => array( "4.4.5" => array( + "announcement" => true, "source" => array( array( "filename" => "php-4.4.5.tar.bz2", http://cvs.php.net/viewvc.cgi/phpweb/downloads.php?r1=1.276&r2=1.277&diff_format=u Index: phpweb/downloads.php diff -u phpweb/downloads.php:1.276 phpweb/downloads.php:1.277 --- phpweb/downloads.php:1.276 Sun Feb 18 16:58:04 2007 +++ phpweb/downloads.php Wed Feb 21 16:18:25 2007 @@ -1,5 +1,5 @@ -<?php -// $Id: downloads.php,v 1.276 2007/02/18 16:58:04 bjori Exp $ +<?php // vim: et +// $Id: downloads.php,v 1.277 2007/02/21 16:18:25 bjori Exp $ $_SERVER['BASE_PAGE'] = 'downloads.php'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc'; include_once $_SERVER['DOCUMENT_ROOT'] . '/include/version.inc'; @@ -132,10 +132,17 @@ ?> </ul> +<?php +$announce_text = "."; +if($a["announcement"]) { + $file = str_replace(".", "_", $v); + $announce_text = ', or the <a href="/releases/' .$file. '.php">release notes</a> for' + . ' more information on this particular release.'; +} +?> <p> See the <a href="/ChangeLog-4.php">ChangeLog</a> for a complete list of - changes, or the <a href="/release_4_4_5.php">release notes</a> for more - information on this particular release. + changes<?php echo $announce_text;?> </p> <h2>Windows Binaries</h2>

« previous php.mirrors (#34421) next »