cvs: phpweb / download-php3.php
| From: | Jim Winstead | Date: | Sat, 07 Jul 2001 03:09:08 +0000 |
| Subject: | cvs: phpweb / download-php3.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-5253@lists.php.net to get a copy of this message | ||
jimw Fri Jul 6 23:09:08 2001 EDT
Modified files:
/phpweb download-php3.php
Log:
fix and simplify the php 3 download page, and add note about php 3 no longer being developed
Index: phpweb/download-php3.php
diff -u phpweb/download-php3.php:1.7 phpweb/download-php3.php:1.8
--- phpweb/download-php3.php:1.7 Sun Jul 1 05:55:11 2001
+++ phpweb/download-php3.php Fri Jul 6 23:09:08 2001
@@ -3,169 +3,23 @@
$current = "3.0.18";
$win32_current = "3.0.17";
-#$rpm_current = "3.0.5-1";
$filesizes["php-${current}.tar.gz"]="2,220 kB";
$filesizes["php-${win32_current}-win32.zip"]="1,895 kB";
-#$filesizes["mod_php3-${rpm_current}.i386.rpm"]="294 kB";
-#$filesizes["mod_php3-${rpm_current}.src.rpm"]="1,503 kB";
-
-function makeCap() {
- GLOBAL $MIRRORS, $COUNTRIES,$PHP_SELF,$MYSITE;
- global $showcountry,$showsites,$csel;
+commonHeader("Download PHP 3.0 Engine");
?>
-<TR bgcolor='#D0D0D0' valign=top>
-<TD ALIGN=left><IMG ALT=" " SRC="/gifs/gcap-lefttop.gif" WIDTH=18
HEIGHT=18 BORDER=0><BR></TD>
-<TD align=center colspan=3 rowspan=2 NOWRAP>
-<?php
-if (!isset($csel)) {
- $csel='';
- $hostname=getenv("REMOTE_HOST");
- $ipaddr=getenv("REMOTE_ADDR");
- if ((!$hostname)||($hostname==$ipaddr)) {
- $hostname=@gethostbyaddr($ipaddr);
- echo "<!-- no_remote_host\nipaddr=$ipaddr\nhostname=$hostname -->\n";
- if ($hostname==$ipaddr) { $hostname=""; }
- } else {
- echo "<!-- remote_host\nhostname=$hostname -->\n";
- }
- if ($hostname) {
- if (ereg('([a-zA-Z]+)$',$hostname,$reg)) {
- $csel=$reg[0];
- }
- }
-}
-if ($COUNTRIES[$csel]) {
- $showcountry=$csel;
-} else {
- $info=$MIRRORS[$MYSITE];
- $showcountry=$info[0];
- if (!$showcountry) {
- $showcountry="us";
- }
-}
-$mirror_sites=$MIRRORS;
-
-$count=0;
-$lastc="";
-reset($mirror_sites);
-while ($site = key($mirror_sites)) {
- $info = $mirror_sites[$site];
-
- next($mirror_sites);
- $c = $info[0];
- $cname=$COUNTRIES[$c];
- if ($c==$showcountry) {
- $showsites[]=$site;
- }
- if ($c == $lastc || $c == 'xx') {
- continue;
- }
- $count++;
- echo "<A HREF=\"$PHP_SELF?csel=$c\"><IMG
SRC=\"/gifs/gflag-$c.gif\" WIDTH=45 HEIGHT=24 VSPACE=5 hspace=15 BORDER=0
ALT=\"$cname\"></A>";
- if ($count%5==0) {
- echo "<BR>\n";
- }
- $lastc = $c;
-}
-?><BR>
-</TD>
-<TD ALIGN=right><IMG ALT=" " SRC="/gifs/gcap-righttop.gif" WIDTH=18
HEIGHT=18 BORDER=0><BR></TD>
-</TR>
-<TR VALIGN=bottom bgcolor='#D0D0D0'>
-<TD ALIGN=left><IMG alt=" " SRC="/gifs/gcap-leftbot.gif" WIDTH=18
HEIGHT=18 BORDER=0><BR></TD>
-<TD ALIGN=right><IMG alt=" " SRC="/gifs/gcap-rightbot.gif" WIDTH=18
HEIGHT=18 BORDER=0><BR></TD>
-</TR>
+<h1>Latest version of PHP 3.0</h1>
+<p><em>Note:</em> PHP 3 is no longer being actively developed, and
+non-security-related bugs will probably not be addressed.</p>
+<h2>Complete Source Code</h2>
+<ul>
+ <li><?echo download_link($src_file, "PHP $current source");?></li>
+</ul>
+<h2>Win32 Binaries</h2>
+<ul>
+ <li><?echo download_link($win32_zfile, "$win32_current Win32
binary");?></li>
+</ul>
<?php
-};
-
-
-commonHeader("Download PHP Engine");
+commonFooter();
?>
-<FONT SIZE=+1><B>Choose a country to download from:</B></FONT><BR>
-<?php if (!$csel) { ?>
-<I>(the closest has automagically been selected for you)</I><BR>
-<?php } ?>
-<BR>
-<BR>
-
-<CENTER>
-<TABLE border=0 cellpadding=0 cellspacing=0>
-<?
-makeCap();
-
-$thisurl=substr($PHP_SELF,1); /* strip leading slash */
-$mirror_sites=$MIRRORS;
-$lastcountry="xxxxx";
-@reset($showsites);
-while ($site = @current($showsites)) {
- next($showsites);
- $info = $mirror_sites[$site];
- list($country, $location, $shortname, $companyurl, $show) = $info;
- $cname=$COUNTRIES[$country];
- if (!$show) {
- continue;
- }
- if (eregi("^http://",$site)) {
- $method="HTTP";
- $srcdir="distributions/";
- } elseif (eregi("^ftp://",$site)) {
- $method="FTP";
- $srcdir="";
- } else {
- $method="unknown";
- }
- if ($lastcountry!=$country) {
- echo "<TR><TD colspan=3><BR></TD><TD
BGCOLOR='#F0F0F0'><BR></TD><TD><BR></TD></TR>\n";
- echo "<TR BGCOLOR='#D0D0D0' VALIGN=middle>\n";
- echo "<TD><IMG SRC='/gifs/gcap-left.gif' WIDTH=18 HEIGHT=36 BORDER=0
ALT=' '></TD>\n";
- echo "<TD><A HREF=\"$site$thisurl?csel=$country\"><IMG
SRC='/gifs/gflag-$country.gif' ALT='$cname' WIDTH=45 HEIGHT=24 vspace=6 BORDER=0
hspace=10></A><BR></TD>\n";
- echo "<TD colspan=2>";
- echo "<FONT
FACE='$FONTFACE'><B>$COUNTRIES[$country]</B><BR></TD>\n";
- echo "<TD align=right><IMG ALT=' ' SRC='/gifs/gcap-right.gif'
WIDTH=18 HEIGHT=36 BORDER=0><BR></TD>\n";
- echo "</TR>\n";
- $lastcountry=$country;
- }
- echo "<TR><TD colspan=3>";
- spacer(75,1);
- echo "<BR></TD>\n<TD>";
- echo "<TABLE border=0 cellpadding=5 cellspacing=0 bgcolor=\"#F0F0F0\"
width=100%>\n";
- echo "<TR><TD><FONT FACE='$FONTFACE'>\n";
- if ((!isset($lastlocation))||($lastlocation!=$location)) {
- echo("$location<BR>\n");
- $lastlocation=$location;
- }
- echo "<FONT SIZE=-1><UL>\n";
- $src_file = "${site}${srcdir}php-${current}.tar.gz";
- $win32_zfile = "${site}${srcdir}php-${win32_current}-win32.zip";
-# $i386_rpm = "${site}${srcdir}mod_php3-${rpm_current}.i386.rpm";
-# $src_rpm = "${site}${srcdir}mod_php3-${rpm_current}.src.rpm";
- if (eregi("caraveo",$site)) { # special case ;-)
- echo("<LI>");
- download_link("${site}/php3latest.zip","Latest patched Windows version");
- echo "\n";
- } else {
- echo "<LI>";
- download_link($src_file, "($method) PHP $current source");
- echo "\n";
- echo "<LI>";
- download_link($win32_zfile, "($method) $win32_current Win32 binary");
- echo "\n";
-# echo "<LI>";
-# download_link($src_rpm, "($method) PHP $rpm_current source RPM");
-# echo "\n";
- }
- echo("</UL>\n</TD></TR></TABLE></TD></TR>\n");
-}
-?>
-
-<TR><TD colspan=3><BR></TD><TD
BGCOLOR='#F0F0F0'><BR></TD><TD><BR></TD></TR>
-<TR BGCOLOR='#D0D0D0' VALIGN=middle>
-<TD><IMG SRC='/gifs/gcap-left.gif' WIDTH=18 HEIGHT=36 BORDER=0 ALT='
'></TD>
-<TD COLSPAN=4 align=right><IMG ALT=' ' SRC='/gifs/gcap-right.gif'
WIDTH=18 HEIGHT=36 BORDER=0><BR></TD>
-</TR>
-
-
-</TABLE>
-<?php commonFooter(); ?>