com web/php: add signature to d/l link: include/layout.inc

From: Date: Sun, 17 Nov 2013 23:14:25 +0000
Subject: com web/php: add signature to d/l link: include/layout.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-22559@lists.php.net to get a copy of this message
Commit: c985322d149b8dec5f6c4dac51882813d4d6aa32 Author: Stanislav Malyshev <smalyshev@gmail.com> Sun, 17 Nov 2013 15:14:25 -0800 Parents: e4fc307ca2c5ee47c7c550bddd1c900e11a520f1 Branches: master Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=c985322d149b8dec5f6c4dac51882813d4d6aa32 Log: add signature to d/l link Changed paths: M include/layout.inc Diff: diff --git a/include/layout.inc b/include/layout.inc index 5dd6786..38a2ca4 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -559,6 +559,11 @@ function download_link($file, $title, $showsize = TRUE, $mirror = '') $local_file = "distributions/$file"; } + if(@file_exists($local_file.".asc")) { + echo " "; + print_link($download_link.".asc", "(sig)"); + } + // Try to get the size of the file $size = @filesize($local_file); @@ -573,6 +578,7 @@ function download_link($file, $title, $showsize = TRUE, $mirror = '') } echo ']'; } + } }

« previous php.webmaster (#22559) next »