cvs: phpweb / get_download.php /include layout.inc

From: Date: Wed, 05 Feb 2003 19:59:35 +0000
Subject: cvs: phpweb / get_download.php /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-15508@lists.php.net to get a copy of this message
goba Wed Feb 5 14:59:35 2003 EDT Modified files: /phpweb get_download.php /phpweb/include layout.inc Log: OK, now my tests shows that new /get links work quite well, so go with them, and wait for error reports... New links: /get/{filename} opens up the mirror selection page /get/{filename}/from/{mirrorname} send the file for download These are wget friendly and look quite nice in newsletters, etc... Index: phpweb/get_download.php diff -u phpweb/get_download.php:1.9 phpweb/get_download.php:1.10 --- phpweb/get_download.php:1.9 Tue Feb 4 09:08:05 2003 +++ phpweb/get_download.php Wed Feb 5 14:59:34 2003 @@ -84,8 +84,8 @@ // Print out mirror site download link echo '<td><small>'; - $ps = strpos($murl, '//') + 2; - print_link('/do_download.php?mr=' . urlencode($murl) . '&df=' . urlencode($df), substr($murl, $ps, -1)); + $mirrorname = substr($murl, strpos($murl, '//') + 2, -1) + print_link("/get/$df/from/$mirrorname", $mirrorname); echo '</small><br /></td>' . "\n"; // Print out mirror provider's name Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.118 phpweb/include/layout.inc:1.119 --- phpweb/include/layout.inc:1.118 Mon Feb 3 16:20:47 2003 +++ phpweb/include/layout.inc Wed Feb 5 14:59:35 2003 @@ -1,6 +1,6 @@ <?php -/* $Id: layout.inc,v 1.118 2003/02/03 21:20:47 goba Exp $ */ +/* $Id: layout.inc,v 1.119 2003/02/05 19:59:35 goba Exp $ */ // Print an image for a sized spacer function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false) @@ -154,7 +154,7 @@ function download_link($file, $title, $showsize = true, $mirror = '') { - $download_link = "get_download.php?df=$file"; + $download_link = "get/$file"; if ($mirror != '') { $download_link = $mirror . $download_link; } else {

« previous php.mirrors (#15508) next »