cvs: phpweb /include layout.inc

From: Date: Sun, 28 Oct 2001 21:55:31 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-7232@lists.php.net to get a copy of this message
goba Sun Oct 28 16:55:31 2001 EDT Modified files: /phpweb/include layout.inc Log: Comitting Jeroens patch Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.56 phpweb/include/layout.inc:1.57 --- phpweb/include/layout.inc:1.56 Sun Oct 28 13:26:52 2001 +++ phpweb/include/layout.inc Sun Oct 28 16:55:31 2001 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.56 2001/10/28 18:26:52 jimw Exp $ */ +/* $Id: layout.inc,v 1.57 2001/10/28 21:55:31 goba Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF @@ -153,7 +153,7 @@ # function download_link($file, $title) { - global $filesizes, $server; + global $filesizes; if ($tmp = strrchr($file, "/")) { $local_file = substr($tmp, 1, strlen($tmp)); @@ -164,7 +164,7 @@ $size = @filesize($local_file)/1024; //echo("<!-- file=$file localfile=$local_file size-$size -->\n"); - print_link("http://www.php.net/do_download.php?download_file=" . $file . "&source_site=$server", $title); + print_link("/do_download.php?download_file=$file", $title); if (!$size && isset($filesizes[$local_file])) { $size = $filesizes[$local_file]; } if ($size) { echo " [" . number_format($size, 0, ".", ",") . "Kb]"; }

« previous php.mirrors (#7232) next »