blob: 7c73427f426e1a02b018c3a38fefc2be9bbf2035 [file] [log] [blame]
<?php
function getFileSize($_inputFile, $_downloadbp) {
$fileSize = "N/A";
$fileToCheck = $_downloadbp . $_inputFile;
$filesizebytes = filesize($fileToCheck);
if($filesizebytes > 0) {
$fileSize = floor($filesizebytes / 1048576) . " MB";
}
return $fileSize;
}
function fileLocation($_inputFile) {
# $packageInfoSuffix = "&r=1&protocol=http"; # too many webmaster e-mails
$packageInfoSuffix = "";
$packageInfoPrefix = "http://www.eclipse.org/downloads/download.php?file=";
return $packageInfoPrefix . $_inputFile . $packageInfoSuffix;
}
$osDisplay = $App->getClientOS();
if ($osDisplay == 'nt6.0') { $osDisplay = 'win32'; } // Windows Vista shows up as this
if ( ($osDisplay != "macosx") && ($osDisplay != "linux") && ($osDisplay != "win32") && ($osDisplay != "linux-x64")) {
$osDisplay = "win32";
}
$downloadBasepath = $App->getDownloadBasePath();
$drop = "europa/winter";
$dropName = "europa-winter";
$classicDrop = "R-3.3.2-200802211800";
$packageInfo['java']['win32'] = "/technology/epp/downloads/release/$drop/eclipse-java-$dropName-win32.zip";
$packageInfo['java']['linux'] = "/technology/epp/downloads/release/$drop/eclipse-java-$dropName-linux-gtk.tar.gz";
$packageInfo['java']['linux-x64'] = "/technology/epp/downloads/release/$drop/eclipse-java-$dropName-linux-gtk-x86_64.tar.gz";
$packageInfo['java']['macosx'] = "/technology/epp/downloads/release/$drop/eclipse-java-$dropName-macosx-carbon.tar.gz";
$packageInfo['jee']['win32'] = "/technology/epp/downloads/release/$drop/eclipse-jee-$dropName-win32.zip";
$packageInfo['jee']['linux'] = "/technology/epp/downloads/release/$drop/eclipse-jee-$dropName-linux-gtk.tar.gz";
$packageInfo['jee']['linux-x64'] = "/technology/epp/downloads/release/$drop/eclipse-jee-$dropName-linux-gtk-x86_64.tar.gz";
$packageInfo['jee']['macosx'] = "/technology/epp/downloads/release/$drop/eclipse-jee-$dropName-macosx-carbon.tar.gz";
$packageInfo['rcp']['win32'] = "/technology/epp/downloads/release/$drop/eclipse-rcp-$dropName-win32.zip";
$packageInfo['rcp']['linux'] = "/technology/epp/downloads/release/$drop/eclipse-rcp-$dropName-linux-gtk.tar.gz";
$packageInfo['rcp']['linux-x64'] = "/technology/epp/downloads/release/$drop/eclipse-rcp-$dropName-linux-gtk-x86_64.tar.gz";
$packageInfo['rcp']['macosx'] = "/technology/epp/downloads/release/$drop/eclipse-rcp-$dropName-macosx-carbon.tar.gz";
$packageInfo['c']['win32'] = "/technology/epp/downloads/release/$drop/eclipse-cpp-$dropName-win32.zip";
$packageInfo['c']['linux'] = "/technology/epp/downloads/release/$drop/eclipse-cpp-$dropName-linux-gtk.tar.gz";
$packageInfo['c']['linux-x64'] = "/technology/epp/downloads/release/$drop/eclipse-cpp-$dropName-linux-gtk-x86_64.tar.gz";
$packageInfo['c']['macosx'] = "/technology/epp/downloads/release/$drop/eclipse-cpp-$dropName-macosx-carbon.tar.gz";
$packageInfo['classic']['win32'] = "/eclipse/downloads/drops/$classicDrop/eclipse-SDK-3.3.2-win32.zip";
$packageInfo['classic']['linux'] = "/eclipse/downloads/drops/$classicDrop/eclipse-SDK-3.3.2-linux-gtk.tar.gz";
$packageInfo['classic']['linux-x64'] = "/eclipse/downloads/drops/$classicDrop/eclipse-SDK-3.3.2-linux-gtk-x86_64.tar.gz";
$packageInfo['classic']['macosx'] = "//eclipse/downloads/drops/$classicDrop/eclipse-SDK-3.3.2-macosx-carbon.tar.gz";
$packageInfo['platform']['win32'] = "/eclipse/downloads/drops/$classicDrop/download.php?dropFile=eclipse-SDK-3.3.2-win32.zip";
$packageInfo['platform']['linux'] = "/eclipse/downloads/drops/$classicDrop/download.php?dropFile=eclipse-SDK-3.3.2-linux-gtk.tar.gz";
$packageInfo['platform']['linux-x64'] = "/eclipse/downloads/drops/$classicDrop/download.php?dropFile=eclipse-SDK-3.3.2-linux-gtk-x86_64.tar.gz";
$packageInfo['platform']['macosx'] = "/eclipse/downloads/drops/$classicDrop/download.php?dropFile=eclipse-SDK-3.3.2-macosx-carbon.tar.gz";
include "names.php";
$javaDownload = fileLocation($packageInfo['java'][$osDisplay]);
$jeeDownload = fileLocation($packageInfo['jee'][$osDisplay]);
$rcpDownload = fileLocation($packageInfo['rcp'][$osDisplay]);
$cDownload = fileLocation($packageInfo['c'][$osDisplay]);
$classicDownload = fileLocation($packageInfo['classic'][$osDisplay]);
$classOtherDownloads = "http://download.eclipse.org/eclipse/downloads/drops/$classicDrop";
$runtimeBinariesDownload = fileLocation($packageInfo['classic'][$osDisplay]);
$javaFileSize = @getFileSize($packageInfo['java'][$osDisplay], $downloadBasepath);
$jeeFileSize = @getFileSize($packageInfo['jee'][$osDisplay], $downloadBasepath);
$rcpFileSize = @getFileSize($packageInfo['rcp'][$osDisplay], $downloadBasepath);
$cFileSize = @getFileSize($packageInfo['c'][$osDisplay], $downloadBasepath);
$classicFileSize = @getFileSize($packageInfo['classic'][$osDisplay], $downloadBasepath);
$java_runtime = "jre.php";
$movie_install_java_url = "http://www.eclipse.org/downloads/download.php?r=1&file=/technology/phoenix/europa/EclipseIdeForJavaDevelopers";
$movie_install_java_title = "Installing and Using the $javaTitle";
$movie_install_jee_url = "http://www.eclipse.org/downloads/download.php?r=1&file=/technology/phoenix/europa/EclipseIdeForJeeDevelopers";
$movie_install_jee_title = "Installing and Using the $jeeTitle";
$movie_install_features_url = "http://www.eclipse.org/downloads/download.php?r=1&file=/technology/phoenix/europa/AddingFeatures";
$movie_install_features_title = "Adding Features from the Europa&nbsp;Discovery&nbsp;Site";
$movie_test_first_url = "http://www.eclipse.org/downloads/download.php?r=1&file=/technology/phoenix/europa/TestFirstWithEclipse";
$movie_test_first_title = "Test First Development using Eclipse";
$movie_mylyn_url = "";
$movie_mylyn_title = "Task Focused Development Using Eclipse&nbsp;Mylyn";
$user_guide_url = "http://help.eclipse.org/stable/index.jsp";
$java_runtimes = "http://download.eclipse.org/eclipse/downloads/drops/$classicDrop/java-runtimes.html";
$platform_new_and_noteworthy_url = "http://archive.eclipse.org/eclipse/downloads/drops/R-3.3-200706251500/whatsnew/eclipse-news.html";
$wtp_new_and_noteworthy_url = "http://www.eclipse.org/webtools/releases/2.0/newandnoteworthy/main.php";
// Where is the discovery site (relative to this page).
$callisto_discovery = "discovery.php";
// Where is the "install-callisto" screencam demo?
$install_callisto = "http://www.eclipse.org/evangelism/demos/install-callisto/install-callisto.html";
# Uncomment line below to use "install-callisto" from downloads
#$install_callisto = "http://www.eclipse.org/downloads/download.php?r=1&file=/technology/phoenix/demos/install-callisto/install-callisto.html";
$windows_warning = "Windows&trade;&nbsp;users, see this&nbsp;<a href=\"#\" onclick=\"javascript:window.open('parts/windows_zip.php','warning','width=400,height=400,status=no,resizeable=yes,menubar=no,toolbar=no, directories=no,location=no,scrollbars=yes')\">note</a>";
$app_servers = "Click&nbsp;<a href=\"#\" onclick=\"javascript:window.open('parts/appsrv.php','warning','width=400,height=400,status=no,resizeable=yes,menubar=no,toolbar=no, directories=no,location=no,scrollbars=yes')\">here</a> for more information about application&nbsp;servers";
$c_tool_chain = "Click&nbsp;<a href=\"#\" onclick=\"javascript:window.open('parts/c_compiler.php','warning','width=400,height=400,status=no,resizeable=yes,menubar=no,toolbar=no, directories=no,location=no,scrollbars=yes')\">here</a> for more information about C/C++ compilers and tools";
?>