com web/php: add signature to d/l link: include/layout.inc
| From: | Stanislav Malyshev | 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-17034@lists.php.net to get a copy of this message | ||
Commit: 17380e9c9de75d0b6037b8d3dbab6b347baadef1
Author: Stanislav Malyshev <smalyshev@gmail.com> Sun, 17 Nov 2013 15:14:25 -0800
Parents: 0957ac31957fc39f05d7fdd3a9510f0f21f50297
Branches: master
Link: http://git.php.net/?p=web/php.git;a=commitdiff;h=17380e9c9de75d0b6037b8d3dbab6b347baadef1
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 ']';
}
+
}
}