mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
e09e27b1ac
remove Berlios redirect to updated JRE, link is now hardcoded again, JRE update git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8003 6c8d7289-2bf4-0310-a012-ef5d649a1542
30 lines
716 B
PHP
30 lines
716 B
PHP
<?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
|
|
Use this User-Agent to see the 64bit version link:
|
|
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Win64; x64; Trident/4.0)
|
|
|
|
$_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-6u29-windows-i586.exe
|
|
header('Location: http://javadl.sun.com/webapps/download/AutoDL?BundleId=57241');
|
|
|
|
if($_GET['version'] == 64)
|
|
// jre-6u29-windows-x64.exe
|
|
header('Location: http://javadl.sun.com/webapps/download/AutoDL?BundleId=56699');
|
|
|
|
}
|
|
|
|
?>
|