summaryrefslogtreecommitdiff
path: root/addon/download.php
diff options
context:
space:
mode:
authorlotus <lotus@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-08-26 16:53:20 +0000
committerlotus <lotus@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-08-26 16:53:20 +0000
commitd5ccbb99f934e3e2c9578799a645c9feace852ff (patch)
treeaefce39c70d5d0b63b4cc7a4dc40c5c017af3e02 /addon/download.php
parent4f22e2df410ce454bcddbdd4a54afec1d8dfbe05 (diff)
the Windows installer now always requires admin level for installation (Vista/7)
unfortunately some users seem to forget to manually install the downloaded Java runtime and therefore could not start YaCy - added concept to always distribute the latest Java version via external php script git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7076 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'addon/download.php')
-rw-r--r--addon/download.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/addon/download.php b/addon/download.php
new file mode 100644
index 000000000..0f9367a9a
--- /dev/null
+++ b/addon/download.php
@@ -0,0 +1,27 @@
+<?php
+/*
+This file serves the latest Java version locations for the Windows installer.
+
+JAVA VERSION
+http://www.java.com/de/download/manual.jsp BundleId +1 / +2
+
+$_GET['what'] should be 'jre'
+$_GET['version'] 32 or 64 (bit)
+$_GET['yacyrevnr'] not used yet
+
+*/
+
+
+if ($_GET['what'] == 'jre') {
+
+ if($_GET['version'] == 32)
+ // jre-6u18-windows-i586.exe
+ header('Location: http://javadl.sun.com/webapps/download/AutoDL?BundleId=37718');
+
+ if($_GET['version'] == 64)
+ // jre-6u18-windows-x64.exe
+ header('Location: http://javadl.sun.com/webapps/download/AutoDL?BundleId=37401');
+
+}
+
+?>