From 671acb84e9a6892a99f635cd981931a8b0bc9758 Mon Sep 17 00:00:00 2001
From: Romain d'Alverny
Date: Tue, 21 Feb 2012 19:30:40 +0000
Subject: display visitor IP address
---
en/downloads/get/index.php | 21 ++++++++++++---------
en/downloads/get/lib.php | 1 +
2 files changed, 13 insertions(+), 9 deletions(-)
(limited to 'en/downloads')
diff --git a/en/downloads/get/index.php b/en/downloads/get/index.php
index 0781c3e6a..496b94ca8 100644
--- a/en/downloads/get/index.php
+++ b/en/downloads/get/index.php
@@ -28,6 +28,7 @@ require 'lib.php';
// request
$product = get('q');
+$debug = get('d');
$torrent = isset($_GET['torrent']) ? true : false;
if (is_null($product)) {
@@ -152,22 +153,24 @@ $_t['page_title'] = sprintf($_t['page_title'], '' . $title . '
' ', sprintf($_t['dl_size'], $product['size']),
' ', sprintf($_t['alt_download'], $download, $download);
?>
-
+
- 0)
- || (isset($product['sha1'])) && strlen($product['sha1']) > 0)
- && !$torrent): ?>
-
-
-
+ 0)
+ || (isset($product['sha1'])) && strlen($product['sha1']) > 0)
+ && !$torrent): ?>
+
+
+
$ md5sum ", $product['md5'], "\n"; endif; ?>
$ sha1sum ", $product['sha1'], "\n"; endif; ?>
-
-
+
+
+
diff --git a/en/downloads/get/lib.php b/en/downloads/get/lib.php
index 73a01fbe2..bcafa8b56 100644
--- a/en/downloads/get/lib.php
+++ b/en/downloads/get/lib.php
@@ -37,6 +37,7 @@ class NoProductFoundError extends Exception {}
class NoMirrorFoundError extends Exception {}
/**
+ * TODO use aliases, so that downloads asking for alpha3 get redirected to beta1 for instance? (on migration)
*/
function get_info_for_product($product)
{
--
cgit v1.2.1