You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by bu...@apache.org on 2012/04/29 17:25:36 UTC
svn commit: r814991 [1/16] - in /websites/staging/ooo-site/trunk: cgi-bin/
content/ content/download/legacy/ content/download/legacy/md5sums/
Author: buildbot
Date: Sun Apr 29 15:25:35 2012
New Revision: 814991
Log:
Staging update by buildbot for openofficeorg
Added:
websites/staging/ooo-site/trunk/content/download/legacy/
websites/staging/ooo-site/trunk/content/download/legacy/download.js
websites/staging/ooo-site/trunk/content/download/legacy/download_bouncer.js
websites/staging/ooo-site/trunk/content/download/legacy/download_mirrorbrain.js
websites/staging/ooo-site/trunk/content/download/legacy/exceptions.css
websites/staging/ooo-site/trunk/content/download/legacy/globalvars.js
websites/staging/ooo-site/trunk/content/download/legacy/index.html
websites/staging/ooo-site/trunk/content/download/legacy/languages.js
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/1.1.0_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/1.1.1_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/1.1.2_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/1.1.3_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/1.1.4_md5sums.txt
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/1.1.5_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.0.0_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.0.1_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.0.2_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.0.3_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.0.4_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.1.0_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.2.0_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.3.0_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.3.1_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.4.0_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.4.1_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.4.2_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/2.4.3_md5sums.txt
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/3.0.0_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/3.0.1_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/3.1.0_md5sums.html
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/3.1.1_md5sums.txt
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/3.2.0_md5sums.txt
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/3.2.1_md5sums.txt
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/3.3.0_md5sums.txt
websites/staging/ooo-site/trunk/content/download/legacy/md5sums/index.html
websites/staging/ooo-site/trunk/content/download/legacy/notes.html
websites/staging/ooo-site/trunk/content/download/legacy/other.html
Modified:
websites/staging/ooo-site/trunk/cgi-bin/ (props changed)
websites/staging/ooo-site/trunk/content/ (props changed)
Propchange: websites/staging/ooo-site/trunk/cgi-bin/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Apr 29 15:25:35 2012
@@ -1 +1 @@
-1331917
+1331923
Propchange: websites/staging/ooo-site/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Sun Apr 29 15:25:35 2012
@@ -1 +1 @@
-1331917
+1331923
Added: websites/staging/ooo-site/trunk/content/download/legacy/download.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/legacy/download.js (added)
+++ websites/staging/ooo-site/trunk/content/download/legacy/download.js Sun Apr 29 15:25:35 2012
@@ -0,0 +1,528 @@
+/*
+ * get array for language
+ */
+function getArray() {
+ if (navigator.language)
+ language = navigator.language;
+ else if (navigator.userLanguage)
+ language = navigator.userLanguage;
+ else if (navigator.systemLanguage)
+ language = navigator.systemLanguage;
+
+ // Convert "en" to "en-US" as well since en-US build is the canonical
+ // translation, and thus better tested.
+ if (language == "" || language == "null" || language == "en") language = "en-US";
+
+ // Konqueror uses '_' where other browsers use '-'.
+ if (language.indexOf("_") != -1) {
+ language = language.split("_").join("-");
+ }
+
+ language = language.toLowerCase();
+ var languageCode = language.split("-")[0];
+ var regionCode = language.split("-")[1];
+
+ var thisLanguageSet = languages[languageCode];
+ if ( thisLanguageSet == null ) {
+ // language code not found inside array
+ languageCode = "en";
+ regionCode = "us";
+ thisLanguageSet = languages[languageCode];
+ }
+
+ if ( regionCode != null ) {
+ // found additional region code
+ if (thisLanguageSet[regionCode] != null) {
+ // choose langCode-regionCode
+ thisLanguage = thisLanguageSet[regionCode];
+ } else {
+ // choose default
+ thisLanguage = thisLanguageSet["-"];
+ if ( languageCode == "en" ) {
+ // special case, default is en-US for en-XX
+ regionCode = "us";
+ thisLanguageSet = languages[languageCode];
+ thisLanguage = thisLanguageSet[regionCode];
+ }
+ }
+ } else {
+ // choose default for none given region code
+ thisLanguage = thisLanguageSet["-"];
+ };
+ return thisLanguage;
+}
+
+/*
+ * get language for user-language
+ */
+function getLanguage() {
+ var a = getArray();
+ return a[1];
+}
+
+/*
+ * get language for user-language in ISO format
+ */
+function getLanguageISO() {
+ if (navigator.language)
+ language = navigator.language;
+ else if (navigator.userLanguage)
+ language = navigator.userLanguage;
+ else if (navigator.systemLanguage)
+ language = navigator.systemLanguage;
+
+ // Convert "en" to "en-US" as well since en-US build is the canonical
+ // translation, and thus better tested.
+ if (language == "" || language == "null" || language == "en") language = "en-US";
+ if (language == "pt") language = "pt-PT";
+
+ // Konqueror uses '_' where other browsers use '-'.
+ if (language.indexOf("_") != -1) language = language.split("_").join("-");
+
+ language = language.toLowerCase();
+ var languageCode = language.split("-")[0];
+ var regionCode = language.split("-")[1];
+
+ var thisLanguageSet = languages[languageCode];
+ if ( thisLanguageSet == null ) {
+ return "en-US";
+ } else if ( regionCode != null ) {
+ if ( regionCode == "pt" && languageCode == "pt" ) {
+ // fix for Port. pt-PT downloads named only pt without region code!
+ return languageCode;
+ }
+ if (thisLanguageSet[regionCode] != null) {
+ // choose langCode-regionCode
+ return languageCode + "-" + regionCode.toUpperCase();
+ } else {
+ // choose default
+ if ( languageCode == "en" ) {
+ // special case, default is en-US for en-XX
+ return "en-US";
+ } else
+ return languageCode;
+ }
+ } else {
+ // choose default
+ return languageCode;
+ };
+}
+
+/*
+ * get flag for mirror link
+ * was old bouncer flag
+ * depends on array-list
+ */
+function hasMirrorLink() {
+ var a = getArray();
+ var platform = getPlatform();
+
+ if ( a[4] == 'y' ) {
+ // special handling for MAC, links in combination with general flag a[4]
+ if ( platform.indexOf( "Mac" ) == -1 || a[5] == 'y' ) {
+ return true;
+ } else {
+ return false;
+ }
+ } else {
+ return false;
+ }
+}
+
+/*
+ * get link
+ * depends on array-list
+ */
+function getLink( version ) {
+ return bouncer_getLink( version );
+}
+
+/*
+ * get link
+ * depends on array-list
+ */
+function getLink( version, mirror ) {
+ if ( null != mirror ) {
+ return bouncer_getLink( version, mirror, "old" );
+ }
+}
+
+/*
+ * get link
+ * depends on array-list and download-set nameschema
+ */
+function getLink( version, mirror, schema ) {
+ if ( null != mirror ) {
+ if ( mirror.indexOf( "bouncer" ) > -1 ) {
+ return bouncer_getLink( version );
+ } else if ( mirror.indexOf( "mirrorbrain" ) > -1 ) {
+ return mirrorbrain_getLink( version, schema );
+ } else if ( mirror.indexOf( "sourceforge" ) > -1 ) {
+ return sourceforge_getLink( version, schema );
+ } else {
+ return bouncer_getLink( version );
+ }
+ }
+}
+
+/*
+ * get platform of browser
+ * independant from mirror-system
+ */
+function getPlatform() {
+ if ( navigator.platform != null ) {
+ if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+ return "Windows";
+ } else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+ return "Windows";
+ } else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+ return "Windows";
+ } else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+ if ( navigator.platform.indexOf( "64" ) != -1 ) {
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+ navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return "Linux Debian 64-bit";
+ } else {
+ return "Linux 64-bit";
+ }
+ } else {
+ return "Linux 64-bit";
+ }
+ } else {
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+ navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return "Linux Debian";
+ } else {
+ return "Linux";
+ }
+ } else {
+ return "Linux";
+ }
+ }
+ } else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+ return "Solaris x86";
+ } else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+ return "Solaris SPARC";
+ } else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+ return "Solaris SPARC";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "Intel" ) != -1 ) {
+ return "Mac OS Intel";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "PPC" ) != -1 ) {
+ return "Mac OS PPC";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+ return "Mac OS Intel" ;
+ } else if ( navigator.platform.indexOf( "iPad" ) != -1 || navigator.platform.indexOf( "iPhone" ) != -1 ||
+ navigator.platform.indexOf( "iPod" ) != -1 ) {
+ // this code will redirect the iPad, iPhone and iPod entries
+ return "Mac OS Intel" ;
+ } else if ( navigator.platform.indexOf( "Series60" ) != -1 ) {
+ // this code will redirect the Series60 entries
+ return "Windows" ;
+ } else if ( navigator.platform.indexOf( "null" ) != -1 ) {
+ return "Windows" ;
+ } else {
+ // return platform name
+ return navigator.platform;
+ }
+ }
+ return "Windows";
+}
+
+/*
+ * get platform for bouncer-link
+ * must be changed
+ */
+function getPlatformForMirror() {
+ return bouncer_getPlatformForMirror();
+}
+
+/*
+ * deprecated
+ * must be changed
+ */
+function getPlatformForBouncer() {
+ return getPlatformForMirror();
+}
+
+/*
+ * get tupel for tracking
+ */
+function getTupel( href ) {
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+ return bouncer_getTupel( href );
+ } else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+ return mirrorbrain_getTupel( href );
+ }
+ return "";
+}
+
+/*
+ * get product name for tracking
+ */
+function getProduct( href ) {
+ var retVal = "";
+
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+ return bouncer_getProduct( href );
+ } else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+ return mirrorbrain_getProduct( href );
+ }
+ return retVal;
+}
+
+/*
+ * get language code for tracking
+ */
+function getLang( href ) {
+ var retVal = "";
+
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+ return bouncer_getLang( href );
+ } else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+ return mirrorbrain_getLang( href );
+ }
+ return retVal;
+}
+
+/*
+ * get os for tracking
+ */
+function getOS( href ) {
+ var retVal = "";
+
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+ return bouncer_getOS( href );
+ } else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+ return mirrorbrain_getOS( href );
+ }
+ return retVal;
+}
+
+/*
+ * get version for tracking
+ */
+function getVersion( href ) {
+ var retVal = "";
+
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+ return bouncer_getVersion( href );
+ } else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+ return mirrorbrain_getVersion( href );
+ }
+ return retVal;
+}
+
+/*
+ * this function is used on the "download.openoffice.org/other.html" website
+ */
+function writeJavaSelector() {
+ document.write( "<form action=\"\" method=\"\" name=\"downloadSettings\">" );
+ document.write( "<input type=\"checkbox\" onclick=\"updateHREFs()\" checked=\"checked\" name=\"cbIncludeJRE\" id=\"cbIncludeJRE\"> " );
+ //document.write( "<label for=\"cbIncludeJRE\">Include the JRE to the download (this option is not available for Linux 32/64-bit Debian and Mac OS).</label></input>" );
+ document.write( "Include the JRE to the download (switching is only available for Windows and Linux 32-bit RPM full installation sets).</input>" );
+ document.write( "<br/>" );
+ document.write( "</form>" );
+}
+
+/*
+ * this function is used on the "download.openoffice.org/all_rc.html" website
+ */
+function writeJavaSelectorRC() {
+ document.write( "<form action=\"\" method=\"\" name=\"downloadSettings\">" );
+ document.write( "<input type=\"checkbox\" onclick=\"updateHREFs()\" checked=\"checked\" name=\"cbIncludeJRE\" id=\"cbIncludeJRE\"> " );
+ //document.write( "<label for=\"cbIncludeJRE\">Include the JRE to the download (this option is not available for Linux 32/64-bit Debian and Mac OS).</label></input>" );
+ document.write( "Include the JRE to the download (switching is only available for Windows and Linux 32-bit RPM full installation sets).</input>" );
+ document.write( "<br/>" );
+ document.write( "</form>" );
+}
+
+function updateHREFs() {
+ var qabuildsul = document.getElementById("qabuilds");
+ var anchorsToMirror = document.getElementsByTagName("a");
+
+ if (document.downloadSettings.cbIncludeJRE.checked == false) {
+ for (var i = 0; i < anchorsToMirror.length; i++) {
+ if ( anchorsToMirror[i].href.indexOf( "os=linuxinteldeb" ) == -1
+ && anchorsToMirror[i].href.indexOf( "os=macosx" ) == -1
+ ) {
+ if ( anchorsToMirror[i].href.indexOf( "?" ) > 0 && anchorsToMirror[i].href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("wjre&lang=","&lang=");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("wjre&lang=","&lang=");
+ } else if ( anchorsToMirror[i].href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+ if ( anchorsToMirror[i].href.indexOf( "_install-" ) > -1 ||
+ ( anchorsToMirror[i].href.indexOf( "_install_" ) > -1 &&
+ ( anchorsToMirror[i].href.indexOf( "_Linux_" ) > -1 || anchorsToMirror[i].href.indexOf( "_MacOS_" ) > -1 ||
+ anchorsToMirror[i].href.indexOf( "_Win_" ) > -1 ) ) ) {
+ // new schema
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("-wJRE_","_");
+ } else {
+ // old schema
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("install_wJRE_","install_");
+ }
+ } else {
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("wjre&lang=","&lang=");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("wjre&lang=","&lang=");
+ }
+ }
+ if ( anchorsToMirror[i].href.indexOf( "_Linux_x86-64_install-rpm_" ) > -1 || anchorsToMirror[i].href.indexOf( "_Solaris_" ) > -1) {
+ // do not include Linux x86-64 RPM, Solaris in the JRE switching as only wJRE builds are available
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("_install-rpm_","_install-rpm-wJRE_");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("_install_","_install-wJRE_");
+ }
+ if ( anchorsToMirror[i].href.indexOf( "OOo-SDK_" ) > -1 ) {
+ // do not include SDK in the JRE switching as only non-JRE builds are available
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("_install-wJRE_","_install_");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("_install-rpm-wJRE_","_install-rpm_");
+ }
+ }
+ } else {
+ for (var i = 0; i < anchorsToMirror.length; i++) {
+ if ( anchorsToMirror[i].href.indexOf( "os=linuxinteldeb" ) == -1
+ && anchorsToMirror[i].href.indexOf( "os=macosx" ) == -1
+ ) {
+ if ( anchorsToMirror[i].href.indexOf( "?" ) > 0 && anchorsToMirror[i].href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+ // we cannot assume that it is always right, and in order to prevent wjrewjrewjre&... this (should) solve(s) it...
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("wjre&lang=","&lang=");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("wjre&lang=","&lang=");
+ // and now we add them :)
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("&lang=","wjre&lang=");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("&lang=","wjre&lang=");
+ } else if ( anchorsToMirror[i].href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+ if ( anchorsToMirror[i].href.indexOf( "_install" ) > -1 &&
+ ( anchorsToMirror[i].href.indexOf( "_MacOS" ) > -1 || anchorsToMirror[i].href.indexOf( "_deb" ) > -1 ||
+ anchorsToMirror[i].href.indexOf( "_HPPA" ) > -1 || anchorsToMirror[i].href.indexOf( "_IA64" ) > -1 ||
+ anchorsToMirror[i].href.indexOf( "_PPC" ) > -1 || anchorsToMirror[i].href.indexOf( "_S390X" ) > -1 ||
+ anchorsToMirror[i].href.indexOf( "OOo-SDK_" ) > -1 ) ) {
+ // do nothing for MAC, _deb, Linux HPPA, IA64, PPC, S390X and OOo-SDK
+ } else if ( anchorsToMirror[i].href.indexOf( "_install-" ) > -1 || (
+ anchorsToMirror[i].href.indexOf( "_install_" ) > -1 && (
+ anchorsToMirror[i].href.indexOf( "_Linux_" ) > -1 || anchorsToMirror[i].href.indexOf( "_Win_" ) > -1 ||
+ anchorsToMirror[i].href.indexOf( "_Solaris_" ) > -1
+ )
+ ) ) {
+ // new schema
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("_install_","_install-wJRE_");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("_install-rpm_","_install-rpm-wJRE_");
+ } else {
+ // old schema
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("install_wJRE_","install_");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("install_","install_wJRE_");
+ }
+ } else {
+ // we cannot assume that it is always right, and in order to prevent wjrewjrewjre&... this (should) solve(s) it...
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("wjre&lang=","&lang=");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("wjre&lang=","&lang=");
+ // and now we add them :)
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("&lang=","wjre&lang=");
+ anchorsToMirror[i].href = anchorsToMirror[i].href.replace("&lang=","wjre&lang=");
+ }
+ }
+ }
+ }
+}
+
+function continueToDownload( uri ) {
+ uri = uri.replace( MIRROR_BOUNCER_URL, "" );
+ // bonuscheck... noone gets hurt...
+ if (document.downloadSettings.cbIncludeJRE.checked == false) {
+ uri = uri.replace("wjre","");
+ }
+ document.location = "http://download.openoffice.org/contribute.html" + uri; //absolute to for use at other subdomains
+}
+
+function continueToDownloadTwo( uri ) {
+ uri = uri.replace("http://openoffice.bouncer.osuosl.org/","");
+ // bonuscheck... noone gets hurt...
+ if (document.downloadSettings.cbIncludeJRE.checked == false) {
+ uri = uri.replace("wjre","");
+ }
+ document.location = "http://download.openoffice.org/contribute.html" + uri;
+}
+
+function openItem( itemid, uri ) {
+ var thisDocument = document.getElementById("downloadextendedtext");
+ var thisDocument = document.getElementById(itemid);
+
+ if ( ( itemid=="optionitem1" || itemid=="optionitem5" || itemid=="optionitem6" || itemid=="optionitem7" || itemid=="optionitem8" ) && uri.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+ uri = uri.replace( MIRROR_BOUNCER_URL + "?","");
+ uri = "http://download.openoffice.org/contribute.html?download=bouncer&" + escape( uri );
+ } else if ( ( itemid=="optionitem1" || itemid=="optionitem5" || itemid=="optionitem6" || itemid=="optionitem7" || itemid=="optionitem8" ) && uri.indexOf( MIRROR_MIRRORBRAIN_URL ) > -1 ) {
+ uri = uri.replace( MIRROR_MIRRORBRAIN_URL, "");
+ uri = "http://download.openoffice.org/contribute.html?download=mirrorbrain&" + escape( uri );
+ }
+ document.location = uri;
+ // start( uri );
+};
+
+function makeDownloadLIintoButtons() {
+ var downloadextendedtext = document.getElementById( "downloadextendedtext" );
+ var liItems = downloadextendedtext.getElementsByTagName("li");
+
+ for (var i = 0; i < liItems.length; i++) {
+ var liItemsAnchors = liItems[i].getElementsByTagName("a");
+ if (liItemsAnchors.length == 1) {
+ var hrefcontents = liItemsAnchors[0].href;
+ if (hrefcontents.search( "bouncer" ) > -1 || hrefcontents.search( MIRROR_MIRRORBRAIN_URL ) > -1) {
+ liItems[i].onclick = function () {
+ var myHref = this.getElementsByTagName("a")[0].href;
+ continueToDownload(myHref);
+ return false;
+ };
+ } else {
+ liItems[i].onclick = function () {
+ var myHref = this.getElementsByTagName("a")[0].href;
+ document.location = myHref;
+ return false;
+ };
+ }
+ liItems[i].style.cursor = "pointer";
+ }
+ }
+}
+
+function start( uri ) {
+ alert( 'Go to OpenOffice.org ' + uri );
+
+}
+function doLoad( uri ) {
+ // the timeout value should be the same as in the "refresh" meta-tag
+ setTimeout( "download('" + uri + "')", 2*1000 );
+}
+
+function download( uri ) {
+ // starting the download
+ window.location.href = uri;
+}
+
+function startDownload() {
+ var s = window.location.search;
+ i = s.indexOf( "download=" );
+ if ( i > -1 ) {
+ if ( s.indexOf( "download=bouncer" ) > -1 ) {
+ uri = unescape( s.split( "download=bouncer" )[1] );
+ uri = MIRROR_BOUNCER_URL + "?" + uri;
+ } else if ( s.indexOf( "download=mirrorbrain&" ) > -1 ) {
+ uri = unescape( s.split( "download=mirrorbrain&" )[1] );
+ uri = MIRROR_MIRRORBRAIN_URL + uri;
+ }
+ s_linkType = "d";
+ s_linkTrackVars = "events,products,eVar3,eVar8,prop19,prop20,prop21";
+ s_linkTrackEvents = "event7";
+ s_events = "event7";
+ s_eVar3 = "ooo";
+ s_linkName = "ooo:" + getTupel( uri );
+ s_products = "Downloaded Products;" + getProduct( uri ) + " Download";
+ s_eVar8 = getTupel( uri );
+ s_prop19 = getOS( uri );
+ s_prop20 = getLang( uri );
+ s_prop21 = getVersion( uri );
+ if ( uri != null ) {
+ document.write( "Starting download from <a onClick='s_lnk=s_co(this);s_gs(s_account);' href='" + uri + "'>" + uri + "</a>." );
+ doLoad( uri );
+ }
+ // document.location = uri;
+ return false;
+ }
+}
Added: websites/staging/ooo-site/trunk/content/download/legacy/download_bouncer.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/legacy/download_bouncer.js (added)
+++ websites/staging/ooo-site/trunk/content/download/legacy/download_bouncer.js Sun Apr 29 15:25:35 2012
@@ -0,0 +1,196 @@
+/*
+ * get link to mirror system
+ * depends on array-list
+ */
+function bouncer_getLink( version ) {
+ var a = getArray();
+ var platformMirror = bouncer_getPlatformForMirror();
+
+ if ( hasMirrorLink() ) {
+ // use OSUOSL-bouncer link
+ return MIRROR_BOUNCER_URL + "?product=OpenOffice.org&os=" + bouncer_getPlatformForMirror() + "&lang=" + getLanguageISO() + "&version=" + version;
+ } else {
+ // The following lines are no longer valid and commented out as the porting is done and Mac an official build
+ // if ( platformMirror.indexOf( "mac" ) != -1 ) {
+ // send MAC requests to porting.o.o
+ // return "http://porting.openoffice.org/mac/download/";
+ // } else {
+ // use direct link
+ return a[2];
+ // }
+ }
+}
+
+/*
+ * get flag for bouncer link of Dev-Builds
+ * depends on array-list
+ */
+function bouncer_getLinkDevBuild( version ) {
+ var a = getArray();
+ var platformMirror = bouncer_getPlatformForMirror();
+
+ if ( hasMirrorLink() ) {
+ // use OSUOSL-bouncer link
+ return MIRROR_BOUNCER_URL + "?product=OOo-Dev&os=" + bouncer_getPlatformForMirror() + "&lang=" + getLanguageISO() + "&version=" + version;
+ } else {
+ // The following lines are no longer valid and commented out as the porting is done and Mac an official build
+ // if ( platformMirror.indexOf( "mac" ) != -1 ) {
+ // send MAC requests to porting.o.o
+ // return "http://porting.openoffice.org/mac/download/";
+ // } else {
+ // use direct link
+ return a[2];
+ // }
+ }
+}
+
+/*
+ * get platform for mirror-link
+ */
+function bouncer_getPlatformForMirror() {
+ var a = getArray();
+ if ( navigator.platform != null ) {
+ if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "winwjre" : "win";
+ } else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "winwjre" : "win";
+ } else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "winwjre" : "win";
+ } else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 || navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return "linuxinteldeb";
+ } else {
+ return ( a[3] == 'y' ) ? "linuxintelwjre" : "linuxintel";
+ }
+ } else {
+ return ( a[3] == 'y' ) ? "linuxintelwjre" : "linuxintel";
+ }
+ } else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "solarisx86wjre" : "solarisx86";
+ } else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "solarissparcwjre" : "solarissparc";
+ } else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "solarissparcwjre" : "solarissparc";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "Intel" ) != -1 ) {
+ return "macosxintel";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "PPC" ) != -1 ) {
+ return "macosxppc";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+ return "macosxintel";
+ } else {
+ // return ( a[3] == 'y' ) ? "winwjre" : "win";
+ return navigator.platform;
+ }
+ }
+ return ( a[3] == 'y' ) ? "winwjre" : "win";
+}
+
+/*
+ *
+ * tupel for measurement
+ */
+function bouncer_getTupel( href ) {
+ var retVal;
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) == 0 ) {
+ if ( href.indexOf( "product=" ) > 0 && href.indexOf( "os=" ) > 0 && href.indexOf( "lang=" ) > 0 && href.indexOf( "version=" ) > 0 ) {
+ var s = (href.split( "?" )[1]).split( "&" );
+ var product, os, lang, version;
+ for (var i=0; i < s.length; i++ ) {
+ if ( s[i].indexOf( "product=" ) == 0 ) {
+ product = s[i].split( "=" )[1];
+ if ( product.indexOf( "OpenOffice.org" ) == 0 ) {
+ product = "OOo";
+ }
+ } else if ( s[i].indexOf( "os=" ) == 0 ) {
+ os = s[i].split( "=" )[1];
+ } else if ( s[i].indexOf( "lang=" ) == 0 ) {
+ lang = s[i].split( "=" )[1];
+ } else if ( s[i].indexOf( "version=" ) == 0 ) {
+ version = s[i].split( "=" )[1];
+ }
+ }
+ retVal = product + " " + version + "-" + os + "-" + lang + "-" + version;
+ }
+ }
+ return retVal;
+}
+
+/*
+ * get product name for tracking
+ */
+function bouncer_getProduct( href ) {
+ var retVal = "";
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) == 0 ) {
+ if ( href.indexOf( "product=" ) > 0 && href.indexOf( "os=" ) > 0 && href.indexOf( "lang=" ) > 0 && href.indexOf( "version=" ) > 0 ) {
+ var s = (href.split( "?" )[1]).split( "&" );
+ var product, version;
+ for (var i=0; i < s.length; i++ ) {
+ if ( s[i].indexOf( "product=" ) == 0 ) {
+ product = s[i].split( "=" )[1];
+ if ( product.indexOf( "OpenOffice.org" ) == 0 ) {
+ product = "OOo";
+ }
+ } else if ( s[i].indexOf( "version=" ) == 0 ) {
+ version = s[i].split( "=" )[1];
+ }
+ }
+ retVal = product + " " + version;
+ }
+ }
+ return retVal;
+}
+
+/*
+ * get language code for tracking
+ */
+function bouncer_getLang( href ) {
+ var retVal = "";
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) == 0 ) {
+ if ( href.indexOf( "product=" ) > 0 && href.indexOf( "os=" ) > 0 && href.indexOf( "lang=" ) > 0 && href.indexOf( "version=" ) > 0 ) {
+ var s = (href.split( "?" )[1]).split( "&" );
+ for (var i=0; i < s.length; i++ ) {
+ if ( s[i].indexOf( "lang=" ) == 0 ) {
+ retVal = s[i].split( "=" )[1];
+ }
+ }
+ }
+ }
+ return retVal;
+}
+
+/*
+ * get os for tracking
+ */
+function bouncer_getOS( href ) {
+ var retVal = "";
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) == 0 ) {
+ if ( href.indexOf( "product=" ) > 0 && href.indexOf( "os=" ) > 0 && href.indexOf( "lang=" ) > 0 && href.indexOf( "version=" ) > 0 ) {
+ var s = (href.split( "?" )[1]).split( "&" );
+ for (var i=0; i < s.length; i++ ) {
+ if ( s[i].indexOf( "os=" ) == 0 ) {
+ retVal = s[i].split( "=" )[1];
+ }
+ }
+ }
+ }
+ return retVal;
+}
+
+/*
+ * get version for tracking
+ */
+function bouncer_getVersion( href ) {
+ var retVal = "";
+ if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) == 0 ) {
+ if ( href.indexOf( "product=" ) > 0 && href.indexOf( "os=" ) > 0 && href.indexOf( "lang=" ) > 0 && href.indexOf( "version=" ) > 0 ) {
+ var s = (href.split( "?" )[1]).split( "&" );
+ for (var i=0; i < s.length; i++ ) {
+ if ( s[i].indexOf( "version=" ) == 0 ) {
+ retVal = s[i].split( "=" )[1];
+ }
+ }
+ }
+ }
+ return retVal;
+}
Added: websites/staging/ooo-site/trunk/content/download/legacy/download_mirrorbrain.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/legacy/download_mirrorbrain.js (added)
+++ websites/staging/ooo-site/trunk/content/download/legacy/download_mirrorbrain.js Sun Apr 29 15:25:35 2012
@@ -0,0 +1,522 @@
+/*
+ * get link to mirror system
+ * depends on array-list
+ */
+function mirrorbrain_getLink( version ) {
+ return mirrorbrain_getLink( version, "old" );
+}
+
+/*
+ * get link to mirror system in combination with schema for download-set
+ * depends on array-list
+ */
+function mirrorbrain_getLink( version, schema ) {
+ var a = getArray();
+ var platform = getPlatform();
+ var link = null;
+
+ if ( hasMirrorLink() ) {
+ // use mirror link
+ if ( version == VERSION ) {
+ link = MIRROR_MIRRORBRAIN_URL + "files/";
+ if ( getLanguageISO().indexOf( "en-US" ) > -1 ) {
+ link = link + "stable/" + version + "/";
+ } else {
+ link = link + "localized/" + getLanguageISO() + "/" + version + "/";
+ }
+ return link + mirrorbrain_getFileName( version, schema );
+ } else if ( version == OLD_VERSION ) {
+ link = MIRROR_MIRRORBRAIN_URL + "files/";
+ if ( getLanguageISO().indexOf( "en-US" ) > -1 ) {
+ link = link + "stable/" + version + "/";
+ } else {
+ link = link + "localized/" + getLanguageISO() + "/" + version + "/";
+ }
+ return link + mirrorbrain_getFileName( version, schema );
+ } else if ( version == RC_VERSION ) {
+ link = MIRROR_MIRRORBRAIN_URL + "files/extended/" + mirrorbrain_getVersionForDownloadFolder( version ) + "/";
+ return link + mirrorbrain_getFileName( version, schema );
+ } else if ( version == BETA_VERSION ) {
+ link = MIRROR_MIRRORBRAIN_URL + "files/extended/" + version + "/";
+ return link + mirrorbrain_getFileName( version, schema );
+ } else if ( version == DEV1_VERSION ) {
+ link = MIRROR_MIRRORBRAIN_URL + "files/extended/developer/" + version + "/";
+ return link + mirrorbrain_getFileName( version, schema );
+ } else if ( version == DEV2_VERSION ) {
+ link = MIRROR_MIRRORBRAIN_URL + "files/extended/developer/" + version + "/";
+ return link + mirrorbrain_getFileName( version, schema );
+ } else if ( version == DEVB_VERSION ) {
+ link = MIRROR_MIRRORBRAIN_URL + "files/extended/developer/" + version + "/";
+ return link + mirrorbrain_getFileName( version, schema );
+ } else if ( version == TEST_VERSION ) {
+ link = MIRROR_MIRRORBRAIN_URL + "files/";
+ if ( getLanguageISO().indexOf( "en-US" ) > -1 ) {
+ link = link + "stable/" + version + "/";
+ } else {
+ link = link + "localized/" + getLanguageISO() + "/" + version + "/";
+ }
+ return link + mirrorbrain_getFileName( version, schema );
+ }
+ // error
+ return null;
+ } else {
+ // The following lines are no longer valid and commented out as the porting is done and Mac an official build
+ // if ( platform.indexOf( "Mac" ) != -1 ) {
+ // send MAC requests to porting.o.o
+ // return "http://porting.openoffice.org/mac/download/";
+ // } else {
+ // use direct link
+ return a[2];
+ // }
+ }
+}
+
+/*
+ * special tupel for tracking
+ */
+function mirrorbrain_getTupel( href ) {
+ var retVal = "";
+ var file;
+ file = mirrorbrain_getTagFileName( href );
+ if ( file != null ) {
+ var product, os, lang, version;
+ product = mirrorbrain_getTagProduct( file );
+ version = mirrorbrain_getTagVersion( file );
+ os = mirrorbrain_getTagOS( file );
+ lang = mirrorbrain_getTagLang( file );
+ retVal = product + " " + version + "-" + os + "-" + lang + "-" + version;
+ }
+ return retVal;
+}
+
+/*
+ * extract file name from url
+ */
+function mirrorbrain_getTagFileName( href ) {
+ var retVal;
+ if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+ var s = href.split( "/" );
+ retVal = s[s.length-1];
+ }
+ return retVal;
+}
+
+/*
+ * get product name for tracking, external used method
+ */
+function mirrorbrain_getProduct( href ) {
+ var file;
+ file = mirrorbrain_getTagFileName( href );
+ return mirrorbrain_getTagProduct( file ) + " " + mirrorbrain_getTagVersion( file );
+}
+
+/*
+ * get version for tracking, external used method
+ */
+function mirrorbrain_getVersion( href ) {
+ var file;
+ file = mirrorbrain_getTagFileName( href );
+ return mirrorbrain_getTagVersion( file );
+}
+
+/*
+ * get os for tracking, external used method
+ */
+function mirrorbrain_getOS( href ) {
+ var file;
+ file = mirrorbrain_getTagFileName( href );
+ return mirrorbrain_getTagOS( file );
+}
+
+/*
+ * get language code for tracking, external used method
+ */
+function mirrorbrain_getLang( href ) {
+ var file;
+ file = mirrorbrain_getTagFileName( href );
+ return mirrorbrain_getTagLang( file );
+}
+
+/*
+ * get language code for tracking, internal method
+ */
+function mirrorbrain_getTagLang( file ) {
+ var retVal;
+ if ( file != null && (
+ file.indexOf( "_install-" ) > -1 || (
+ file.indexOf( "_install_" ) > -1 && (
+ file.indexOf( "_Linux_" ) > -1 || file.indexOf( "_MacOS_" ) > -1 || file.indexOf( "_Win_" ) > -1 || file.indexOf( "_Solaris_" ) > -1
+ )
+ ) ) ) {
+
+ var s = file.split( "_install" );
+ s = s[1].split( "." );
+ s = s[0].split( "_" );
+ retVal = s[s.length-1];
+
+ } else if ( file != null && file.indexOf( "_install_" ) > -1 ) {
+ var s = file.split( "_install_" );
+ s = s[1].split( "." );
+ s = s[0].split( "_" );
+ if ( s[s.length-1].indexOf( "deb" ) > -1 ) {
+ retVal = s[s.length-2];
+ } else {
+ retVal = s[s.length-1];
+ }
+ }
+ return retVal;
+}
+
+/*
+ * get os name for tracking, internal method
+ */
+function mirrorbrain_getTagOS( file ) {
+ var retVal;
+ if ( file != null && (
+ file.indexOf( "_install-" ) > -1 || (
+ file.indexOf( "_install_" ) > -1 && (
+ file.indexOf( "_Linux_" ) > -1 || file.indexOf( "_MacOS_" ) > -1 || file.indexOf( "_Win_" ) > -1 || file.indexOf( "_Solaris_" ) > -1
+ )
+ ) ) ) {
+
+ var s = file.split( "_install" );
+ s = s[0].split( "_" );
+ retVal = s[ s.length -2 ] + s[ s.length -1 ];
+ retVal = retVal.toLowerCase();
+ if ( retVal.indexOf( "winx86" ) > -1 ) {
+ retVal = "win";
+ } else if ( retVal == "linuxx86" ) {
+ retVal = "linuxintel";
+ } else if ( retVal == "macosx86" ) {
+ retVal = "macosxintel";
+ } else if ( retVal == "macosppc" ) {
+ retVal = "macosxppc";
+ }
+ if ( file.toLowerCase().indexOf( "wjre" ) > -1 ) {
+ retVal = retVal + "wjre";
+ } else if ( file.indexOf( "install-deb" ) > -1 ) {
+ retVal = retVal + "deb";
+ }
+ } else if ( file != null && file.indexOf( "_install_" ) > -1 ) {
+ var s = file.split( "_install_" );
+ s = s[0].split( "_" );
+ retVal = s[ s.length -1 ];
+ retVal = retVal.toLowerCase();
+ if ( retVal.indexOf( "win32intel" ) > -1 ) {
+ retVal = "win";
+ }
+ if ( file.toLowerCase().indexOf( "wjre" ) > -1 ) {
+ retVal = retVal + "wjre";
+ } else if ( file.indexOf( "_deb" ) > -1 ) {
+ retVal = retVal + "deb";
+ } else if ( file.indexOf( "install-deb" ) > -1 ) {
+ retVal = retVal + "deb";
+ }
+ }
+ return retVal;
+}
+
+/*
+ * get product name for tracking, internal method
+ */
+function mirrorbrain_getTagProduct( file ) {
+ var retVal = null;
+ if ( file != null ) {
+ var s = file.split( "_" );
+ retVal = s[0];
+ }
+ return retVal;
+}
+
+/*
+ * get version for tracking, internal method
+ */
+function mirrorbrain_getTagVersion( file ) {
+ var retVal = null;
+ if ( file != null ) {
+ var s = file.split( "_" );
+ retVal = s[1];
+ if ( s[0] == "OOo-Dev" ) {
+ if ( file.indexOf( "_install-" ) > -1 || (
+ file.indexOf( "_install_" ) > -1 && (
+ file.indexOf( "_Linux_" ) > -1 || file.indexOf( "_MacOS_" ) > -1 || file.indexOf( "_Win_" ) > -1 || file.indexOf( "_Solaris_" ) > -1
+ )
+ ) ) {
+ // new schema
+ if ( s[1].indexOf( "_m" ) > -1 ) {
+ retVal = s[1];
+ } else if ( s[1].indexOf( "m" ) > -1 ) {
+ var s2 = s[1].split( "m" );
+ retVal = s2[0] + "_m" + s2[1];
+ } else {
+ retVal = s[1];
+ }
+ } else {
+ // old schema
+ retVal = s[1] + "_" + s[2];
+ }
+ }
+ }
+ return retVal;
+}
+
+/*
+ * method trim timestamp from version, required for RC, requested by MLA
+ */
+function mirrorbrain_getVersionForDownloadFolder( version ) {
+ var s = null;
+ if ( version.indexOf( "_" ) > -1 ) {
+ s = version.split( "_" )[0];
+ } else {
+ s = version;
+ }
+
+ if ( version == VERSION ) {
+ return version;
+ } else if ( version == OLD_VERSION ) {
+ return version;
+ } else if ( version == RC_VERSION ) {
+ return s;
+ } else if ( version == BETA_VERSION ) {
+ return version;
+ } else if ( version == DEV1_VERSION ) {
+ return version;
+ } else if ( version == DEV2_VERSION ) {
+ return version;
+ } else if ( version == TEST_VERSION ) {
+ return version;
+ }
+ // error
+ return null;
+}
+
+function mirrorbrain_getFileName( version, schema ) {
+ var a = getArray();
+ var platform = getPlatform();
+ var fileName = null;
+
+ if ( hasMirrorLink() ) {
+ // use mirror link
+ if ( schema == "old" ) {
+ if ( version == VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == OLD_VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == RC_VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == BETA_VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == DEV1_VERSION ) {
+ fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == DEV2_VERSION ) {
+ fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == DEVB_VERSION ) {
+ fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == TEST_VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else {
+ fileName = null;
+ }
+ } else if ( schema == "new" ) {
+ if ( version == VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == OLD_VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == RC_VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == BETA_VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == DEV1_VERSION ) {
+ fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == DEV2_VERSION ) {
+ fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == DEVB_VERSION ) {
+ fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else if ( version == TEST_VERSION ) {
+ fileName = "OOo_" + version + "_" + mirrorbrain_getPlatformForMirror( schema ) + "_" + getLanguageISO() + mirrorbrain_getExtension( schema );
+ } else {
+ fileName = null;
+ }
+ }
+ return fileName;
+ }
+ // error
+ return null;
+}
+
+/*
+ * get platform for mirror-link
+ */
+function mirrorbrain_getPlatformForMirror( schema ) {
+ var a = getArray();
+ if ( navigator.platform != null ) {
+ if ( schema == "old" ) {
+ if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Win32Intel_install_wJRE" : "Win32Intel_install";
+ } else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Win32Intel_install_wJRE" : "Win32Intel_install";
+ } else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Win32Intel_install_wJRE" : "Win32Intel_install";
+ } else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+ if ( navigator.platform.indexOf( "64" ) != -1 ) {
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 || navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return "LinuxX86-64_install";
+ } else {
+ return ( a[3] == 'y' ) ? "LinuxX86-64_install_wJRE" : "LinuxX86-64_install";
+ }
+ } else {
+ return ( a[3] == 'y' ) ? "LinuxX86-64_install_wJRE" : "LinuxX86-64_install";
+ }
+ } else {
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 || navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "LinuxIntel_install_wJRE" : "LinuxIntel_install";
+ } else {
+ return ( a[3] == 'y' ) ? "LinuxIntel_install_wJRE" : "LinuxIntel_install";
+ }
+ } else {
+ return ( a[3] == 'y' ) ? "LinuxIntel_install_wJRE" : "LinuxIntel_install";
+ }
+ }
+
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 || navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "LinuxIntel_install_wJRE" : "LinuxIntel_install";
+ } else {
+ return ( a[3] == 'y' ) ? "LinuxIntel_install_wJRE" : "LinuxIntel_install";
+ }
+ } else {
+ return ( a[3] == 'y' ) ? "LinuxIntel_install_wJRE" : "LinuxIntel_install";
+ }
+ } else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Solarisx86_install_wJRE" : "Solarisx86_install";
+ } else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "SolarisSparc_install_wJRE" : "SolarisSparc_install";
+ } else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "SolarisSparc_install_wJRE" : "SolarisSparc_install";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "Intel" ) != -1 ) {
+ return "MacOSXIntel_install";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "PPC" ) != -1 ) {
+ return "MacOSXPPC_install";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+ return "MacOSXIntel_install";
+ // testing if this code will help to redirect the iPad, iPhone, iPod entries
+ } else if ( navigator.platform.indexOf( "iPad" ) != -1 || navigator.platform.indexOf( "iPhone" ) != -1 || navigator.platform.indexOf( "iPod" ) != -1 ) {
+ return "MacOSXIntel_install" ;
+ } else {
+ // return plain platform
+ return navigator.platform;
+ }
+ } else if ( schema == "new" ) {
+ if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Win_x86_install-wJRE" : "Win_x86_install";
+ } else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Win_x86_install-wJRE" : "Win_x86_install";
+ } else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Win_x86_install-wJRE" : "Win_x86_install";
+ } else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+ if ( navigator.platform.indexOf( "64" ) != -1 ) {
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 || navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return "Linux_x86-64_install-deb";
+ } else {
+ return ( a[3] == 'y' ) ? "Linux_x86-64_install-rpm-wJRE" : "Linux_x86-64_install-rpm";
+ }
+ } else {
+ return ( a[3] == 'y' ) ? "Linux_x86-64_install-rpm-wJRE" : "Linux_x86-64_install-rpm";
+ }
+ } else {
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 || navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return "Linux_x86_install-deb";
+ } else {
+ return ( a[3] == 'y' ) ? "Linux_x86_install-rpm-wJRE" : "Linux_x86_install-rpm";
+ }
+ } else {
+ return ( a[3] == 'y' ) ? "Linux_x86_install-rpm-wJRE" : "Linux_x86_install-rpm";
+ }
+ }
+
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 || navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ return "Linux_x86_install-deb";
+ } else {
+ return ( a[3] == 'y' ) ? "Linux_x86_install-rpm-wJRE" : "Linux_x86_install-rpm";
+ }
+ } else {
+ return ( a[3] == 'y' ) ? "Linux_x86_install-rpm-wJRE" : "Linux_x86_install-rpm";
+ }
+ } else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Solaris_x86_install-wJRE" : "Solaris_x86_install";
+ } else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Solaris_Sparc_install-wJRE" : "Solaris_Sparc_install";
+ } else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+ return ( a[3] == 'y' ) ? "Solaris_Sparc_install-wJRE" : "Solaris_Sparc_install";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "Intel" ) != -1 ) {
+ return "MacOS_x86_install";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "PPC" ) != -1 ) {
+ return "MacOS_PPC_install";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+ return "MacOS_x86_install";
+ // testing if this code will help to redirect the iPad, iPhone, iPod entries
+ } else if ( navigator.platform.indexOf( "iPad" ) != -1 || navigator.platform.indexOf( "iPhone" ) != -1 || navigator.platform.indexOf( "iPod" ) != -1 ) {
+ return "MacOS_x86_install" ;
+ } else {
+ // return plain platform
+ return navigator.platform;
+ }
+ }
+ }
+ return ( a[3] == 'y' ) ? "Win_x86_install-wJRE" : "Win_x86_install";
+}
+
+/*
+ * get extension for mirror-link
+ */
+function mirrorbrain_getExtension( schema ) {
+ var a = getArray();
+ if ( navigator.platform != null ) {
+ if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+ return ".exe";
+ } else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+ return ".exe";
+ } else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+ return ".exe";
+ } else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+ if ( navigator.userAgent != null ) {
+ if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 || navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ) {
+ if ( schema == "old" ) {
+ return "_deb.tar.gz";
+ } else if ( schema == "new" ) {
+ return ".tar.gz";
+ } else {
+ return ".tar.gz";
+ }
+ } else {
+ return ".tar.gz";
+ }
+ } else {
+ return ".tar.gz";
+ }
+ } else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+ return ".tar.gz";
+ } else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+ return ".tar.gz";
+ } else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+ return ".tar.gz";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "Intel" ) != -1 ) {
+ return ".dmg";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 && navigator.platform.indexOf( "PPC" ) != -1 ) {
+ return ".dmg";
+ } else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+ return ".dmg";
+ // this code provides working entries for iPad, iPhone, iPod
+ } else if ( navigator.platform.indexOf( "iPad" ) != -1 || navigator.platform.indexOf( "iPhone" ) != -1 || navigator.platform.indexOf( "iPod" ) != -1 ) {
+ return ".dmg" ;
+ } else {
+ return navigator.platform;
+ }
+ }
+ return null;
+}
Added: websites/staging/ooo-site/trunk/content/download/legacy/exceptions.css
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/legacy/exceptions.css (added)
+++ websites/staging/ooo-site/trunk/content/download/legacy/exceptions.css Sun Apr 29 15:25:35 2012
@@ -0,0 +1,94 @@
+img { border: 0px; }
+h1 { padding-left: 0.5em; }
+#hr { visibility:hidden; }
+
+#leftcol { display: none; }
+#bodytd { padding: 0px; width: 100%; margin: 0px; }
+#navcol { display: none; }
+.warning { border: solid 3px #F00; background: #FDD; padding: 1em; }
+
+.optionset { margin: 0 0 0 -2px; float: left; width: 67%; max-width: 1200px; }
+.optionset a { margin: 0; padding: .1em 0 .25em 3%; width: 97%; color: #333; }
+.optionset p { margin: 0; padding: .1em 0 .25em 3%; width: 97%; color: #333; }
+.optionset p a { margin: 0; padding: 0; color: #333; }
+#bodycol .optionset p a:hover, #bodycol .optionset .button:hover p a { color: #000; }
+.optionset .button { margin-top: 20px; }
+.optionset .button h2 { margin: 0 0 0 -1px; padding: 0; cursor: pointer; border: none; }
+.optionset .button h2 a { display: block; padding: 25px 25% 0 3%; font-weight: bold; width: 72%; text-decoration: none; cursor: pointer; }
+.optionset .button h3 { margin: 0 0 0 -1px; padding: 0; cursor: pointer; border: none; }
+.optionset .button h3 a { display: block; padding: 5px 25% 0 3%; font-weight: bold; width: 72%; text-decoration: none; cursor: pointer; }
+.optionset .button p { padding: 0; font-size: .9em; padding-bottom: 25px; cursor: pointer; }
+.optionset .button p a { display: block; padding: .1em 25% .25em 3%; text-decoration: none; cursor: pointer; width: 72%; }
+.optionset .first { margin-top: 0; }
+.optionset p.promotional { margin-top: 25px; }
+
+.green { background: url(../cachedimages/button-green.png) #D1EAA0 right top no-repeat; }
+.green:hover { background: url(../cachedimages/button-green.png) #C3E480 right -200px no-repeat; }
+.green h2 a { color: #718D36; }
+.green:hover h2 a, #bodycol .green h2 a:hover { color: #546828; }
+.sub-green { background: #E9FEBE; border-top: 1px solid #C3E480; border-bottom: 1px solid #C3E480; font-size: .8em; }
+.sub-green p { padding: .1em 3%; width: 94%; }
+
+.grey { background: #C0C0C0 right top no-repeat; cursor: default; }
+.grey:hover { background: #A0A0A0 right -200px no-repeat; cursor: default; }
+.grey h2 a { color: #404040; cursor: default; }
+.grey h3 { color: #404040; cursor: default; }
+.grey h3 a { color: #404040; cursor: default; }
+.grey p { color: #404040; cursor: default; }
+.grey p a { color: #404040; cursor: default; }
+.grey:hover h2 a, #bodycol .grey h2 a:hover { color: #202020; cursor: default; }
+.grey:hover h3 a, #bodycol .grey h3 a:hover { color: #202020; cursor: default; }
+.grey:hover p a, #bodycol .grey p a:hover { color: #202020; cursor: default; }
+.sub-grey { background: #E0E0E0; border-top: 1px solid #E0E0E0; border-bottom: 1px solid #E0E0E0; font-size: .8em; cursor: default; }
+.sub-grey p { padding: .1em 3%; width: 94%; cursor: default; }
+
+/* exchanged the normal picture with one that includes the extension repository graphic */
+.blue { background: url(../cachedimages/button-blue-ext.png) #D8E5F6 right top no-repeat; }
+.blue:hover { background: url(../cachedimages/button-blue-ext.png) #C3D9F1 right -200px no-repeat; }
+.blue h2 a { color: #2D72CE; }
+.blue:hover h2 a, #bodycol .blue h2 a:hover { color: #21549A; }
+.sub-blue { background: #E1E1FF; border-top: 1px solid #D1D1FF; border-bottom: 1px solid #D1D1FF; font-size: .8em; }
+.sub-blue p { padding: .1em 3%; width: 94%; }
+
+.yellow { background: url(../cachedimages/button-yellow.png) #FFF379 right top no-repeat; }
+.yellow:hover { background: url(../cachedimages/button-yellow.png) #FFF24F right -200px no-repeat; }
+.yellow h2 a { color: #E09C09; }
+.yellow:hover h2 a, #bodycol .yellow h2 a:hover { color: #C80; }
+.sub-yellow { background: #FFFEAF; border-top: 1px solid #FBD34E; border-bottom: 1px solid #FBD34E; font-size: .8em; }
+.sub-yellow p { padding: .1em 3%; width: 94%; }
+
+.orange { background: url(../cachedimages/button-orange.png) #FFD9A7 right 0 no-repeat; }
+.orange:hover { background: url(../cachedimages/button-orange.png) #FFBE67 right -200px no-repeat; }
+.orange h2 a { color: #D36812; }
+.orange:hover h2 a, #bodycol .orange h2 a:hover { color: #C94800; }
+.sub-orange { background: #FFE2B5; border-top: 1px solid #FFB15E; border-bottom: 1px solid #FFB15E; font-size: .8em; }
+.sub-orange p { padding: .1em 3%; width: 94%; }
+
+.additionalinformation { background: none; float: right; width: 28%; clear: none; }
+.additionalinformation h2 { border-bottom: 1px solid #CCC; margin-bottom: 5px; margin-top: 0px; }
+.additionalinformation h3 { margin-left: 5px; margin-bottom: 5px; }
+.additionalinformation li { margin-left: 5px; font-size: 12px; }
+.additionalinformation a {color:#107EC0;text-decoration:underline;}
+.additionalinformation a:hover {background-color: #e6ebed;}
+
+.additionalinformation #nativelang { background-image: url(../cachedimages/nativelang.gif); background-repeat: no-repeat; background-position: top left; }
+
+#downloadextendedtext p { background: none; }
+#downloadextendedtext ul { background: none; font-weight: bold; list-style: none; margin: 0px; padding: 0px; font-size: 2em; width: 100%; float: left; color: #333; padding-left: 20px; }
+#downloadextendedtext ul a { color: #333; text-decoration: none; background: none; }
+#downloadextendedtext ul a:hover { color: #666;text-decoration: none; }
+#downloadextendedtext ul li { float: left; margin: 0px; padding: 4px; margin-right: .5em; border: 1px #D7EFA4 solid; margin-bottom: .5em; width: 7em; height: 1.7em; }
+#downloadextendedtext ul li:hover { background: #D7EFA4; }
+#downloadextendedtext ul li ul { font-weight: normal; width: auto; margin: 0px; padding: 0px; font-size: .4em; color: #555; }
+#downloadextendedtext ul.nonqabuilds { font-size: 1.4em; }
+#downloadextendedtext ul.nonqabuilds li { width: auto; }
+#downloadextendedtext ul.nonqabuilds li ul { font-size: .5em; }
+
+/* .4em is a little bit too small for nonqa */
+/*Overrides some of the special settings for the parent li*/
+#downloadextendedtext ul li ul li { border: 0px none; margin: 0px; padding: 0px; width: auto; margin-right: .4em; }
+#downloadextendedtext ul li ul li:hover { background: none; }
+
+.largetable table tr.even td { background: #EEEEEE; }
+.largetable table tr.odd td { background: none; }
+.builds { background-position: left; background-repeat: no-repeat; padding: 2px 0 2px 18px; display: block; }
Added: websites/staging/ooo-site/trunk/content/download/legacy/globalvars.js
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/legacy/globalvars.js (added)
+++ websites/staging/ooo-site/trunk/content/download/legacy/globalvars.js Sun Apr 29 15:25:35 2012
@@ -0,0 +1,105 @@
+/* This file is to maintain version information that can be used
+ on all websites via JavaScript when including this file.
+
+ Instead of hard coded version data please use these variables.
+ Example:
+
+ Wrong: "We are proud to announce the availability of our new
+ OpenOffice.org 3.0.0 release."
+ Correct: "We are proud to announce the availability of our new
+ OpenOffice.org " + VERSION + " release."
+
+ MIRROR: should be "bouncer" or "mirrorbrain"
+ SCHEMA: reflects the download-set naming-schema with "old" or "new"
+*/
+
+// The most recent stable release
+var VERSION = "3.3.0";
+var MIRROR = "mirrorbrain";
+var SCHEMA = "new";
+
+// The minimal needed JRE version for the stable release
+var JRE_VERSION = "1.5";
+
+// The previously major release
+var OLD_VERSION = "2.4.3";
+var OLD_MIRROR = "mirrorbrain";
+var OLD_SCHEMA = "old";
+
+// The latest legacy release
+var LEGACY_VERSION = "1.1.5";
+
+// The maximal available number of languages
+var LANG_MAX = 133;
+
+// Data for the most recent Release Candidate
+var RC_NAME = "3.3.0 RC ";
+var RC_BUILD = "3.3.0rc10";
+var RC_DATE = "20110118";
+var RC_VERSION = "OOO330m20";
+var RC_NUMBER = 10;
+var RC_ACTIVE = 1;
+var RC_PPC = 1;
+var RC_FREEBSD = 0;
+var RC_FULL_LANG = new Array( "ar","bg","bn","ca","ca-XV","cs","da","de","el","en-GB","en-US","es","et","eu","fi","fr","ga","gl","he","hu","it","ja","km","ko","lt","mk","nb","nl","om","pl","pt","pt-BR","ru","sh","sl","sr","sv","tr","vi","zh-CN","zh-TW" );
+var RC_LP_LANG = new Array( "ar","as","ast","be-BY","bg","bn","ca","ca-XV","cs","da","de","dz","el","en-GB","en-US","eo","es","et","eu","fi","fr","ga","gl","gu","he","hi","hu","id","is","it","ja","ka","km","kn","ko","ku","lt","lv","mk","ml","mr","my","nb","nl","nn","oc","om","or","pa-IN","pl","pt","pt-BR","ro","ru","sh","si","sk","sl","sr","sv","ta","te","th","tr","ug","uk","uz","vi","zh-CN","zh-TW" );
+var RC_SDK_LANG = new Array( "en-US" );
+var RC_MIRROR = "mirrorbrain";
+var RC_SCHEMA = "new";
+
+// Data for the most recent Beta Release
+var BETA_NAME = "3.4 Beta ";
+var BETA_BUILD = "3.4beta";
+var BETA_DATE = "20110411";
+var BETA_VERSION = "OOO340m0";
+var BETA_NUMBER = 1;
+var BETA_ACTIVE = 1;
+var BETA_PPC = 0;
+var BETA_FREEBSD = 0;
+var BETA_FULL_LANG = new Array( "en-US" );
+var BETA_LP_LANG = new Array( "ar","as","ast","be-BY","bg","bn","ca","ca-XV","cs","da","de","dz","el","en-GB","eo","es","et","eu","fi","fr","ga","gl","gu","he","hi","hu","id","is","it","ja","ka","km","kn","ko","ku","lt","lv","mk","ml","mr","my","nb","nl","nn","oc","om","or","pa-IN","pl","pt","pt-BR","ro","ru","sh","si","sk","sl","sr","sv","ta","te","th","tr","ug","uk","uz","vi","zh-CN","zh-TW" );
+var BETA_SDK_LANG = new Array( "en-US" );
+var BETA_MIRROR = "mirrorbrain";
+var BETA_SCHEMA = "new";
+
+// Data for the most recent Dev Build from the release codeline
+var DEV1_TEXT = "OOO340";
+var DEV1_BUILD = "OOo-Dev 3.4";
+var DEV1_VERSION = "";
+var DEV1_PPC = 0;
+var DEV1_FREEBSD = 0;
+var DEV1_FULL_LANG = new Array( "en-US" );
+var DEV1_LP_LANG = new Array( "ar","de","fr","ja","ru" );
+var DEV1_SDK_LANG = new Array( "en-US" );
+var DEV1_MIRROR = "mirrorbrain";
+var DEV1_SCHEMA = "new";
+
+// Data for the most recent Dev Build from the unstable codeline
+var DEV2_TEXT = "DEV300";
+var DEV2_BUILD = "OOo-Dev 3.x";
+var DEV2_VERSION = "DEV300m106";
+var DEV2_PPC = 0;
+var DEV2_FREEBSD = 0;
+var DEV2_FULL_LANG = new Array( "en-US" );
+var DEV2_LP_LANG = new Array( "ar","de","fr","ja","ru" );
+var DEV2_SDK_LANG = new Array( "en-US" );
+var DEV2_MIRROR = "mirrorbrain";
+var DEV2_SCHEMA = "new";
+
+// The test release for the mirror system
+var TEST_VERSION = "3.1.0";
+var TEST_MIRROR = "mirrorbrain";
+var TEST_SCHEMA = "old";
+
+// Exchange the variables resp. its content to switch the MirrorBrain server
+var MIRROR_BOUNCER_URL = "http://openoffice.bouncer.osuosl.org/";
+var MIRROR_MIRRORBRAIN_URL = "http://openoffice.mirrorbrain.org/";
+var MIRROR_MIRRORBRAIN2_URL = "http://download.services.openoffice.org/";
+
+// Variables to shortcut long URLs
+var MIRROR_MAC_PPC_URL = "http://ooopackages.good-day.net/pub/OpenOffice.org/contrib/macosppc/";
+var MIRROR_FREEBSD32_URL = "http://ooopackages.good-day.net/pub/OpenOffice.org/contrib/freebsdx86/";
+var MIRROR_FREEBSD64_URL = "http://ooopackages.good-day.net/pub/OpenOffice.org/contrib/freebsdx86-64/";
+var MIRROR_EXT_URL = MIRROR_MIRRORBRAIN_URL + "files/extended/";
+var MIRROR_LOC_URL = MIRROR_MIRRORBRAIN_URL + "files/localized/";
+var MIRROR_STABLE_URL = MIRROR_MIRRORBRAIN_URL + "files/stable/";
Added: websites/staging/ooo-site/trunk/content/download/legacy/index.html
==============================================================================
--- websites/staging/ooo-site/trunk/content/download/legacy/index.html (added)
+++ websites/staging/ooo-site/trunk/content/download/legacy/index.html Sun Apr 29 15:25:35 2012
@@ -0,0 +1,329 @@
+<!--#include virtual="/doctype.html" -->
+<html>
+<head>
+<link href="/css/ooo.css" rel="stylesheet" type="text/css">
+
+
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <title>OpenOffice.org Downloads</title>
+ <script type="text/javascript" src="globalvars.js"></script>
+ <script type="text/javascript" src="languages.js"></script>
+ <script type="text/javascript" src="download.js"></script>
+ <script type="text/javascript" src="download_bouncer.js"></script>
+ <script type="text/javascript" src="download_mirrorbrain.js"></script>
+ <style type="text/css">
+ /* <![CDATA[ */
+ /*-------------------- Exceptions on standard css -----------------------*/
+ @import "../styles.css";
+ @import "exceptions.css";
+ /* ]]> */
+ </style>
+
+</head>
+<body>
+<!--#include virtual="/brand.html" -->
+ <div id="topbara">
+ <!--#include virtual="/topnav.html" -->
+ <div id="breadcrumbsa"><a href="/">home</a> » <a href="/download/">download</a> » <a href="/download/legacy/">legacy</a></div>
+ </div>
+ <div id="clear"></div>
+
+
+ <div id="content">
+
+
+
+
+<div class="optionset">
+
+<!-- Green: Stable release -->
+ <script type="text/javascript">
+ <!--
+ LINK = getLink( VERSION, MIRROR, SCHEMA );
+ document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','" + LINK + "');"
+ + "return false;\">" );
+
+ if ( hasMirrorLink() ) {
+ document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>Download OpenOffice.org " + VERSION + "</a></h2>"
+ + "<p><a href='" + LINK + "' title='" + LINK + "'>Click to start downloading the most recent version for "
+ + getPlatform() + " and " + getLanguage() + "."
+ + "<br/>(Java Runtime Environment (JRE) included for all OS versions except Linux 32/64-bit Debian and Mac OS)</a>"
+ + "</p>" );
+ } else {
+ document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>Download OpenOffice.org</a></h2>"
+ + "<p><a href='" + LINK + "' title='" + LINK + "'>Get OpenOffice.org from your " + getLanguage()
+ + " Native Language community</a></p>" );
+ }
+ document.write( "</div>" );
+ document.write( "<div class=\"sub-green\">"
+ + "<p><a href='other.html' title='Get all platforms, languages, language packs to download'>"
+ + "<b>Searching for another version?</b> Get all platforms, languages, language packs</a> | "
+ + "<a href='http://development.openoffice.org/releases/" + VERSION + ".html'"
+ + "title='What is new, what has been improved in OpenOffice.org " + VERSION + "?'>Release Notes</a> | "
+ + "<a href='md5sums/" + VERSION + "_md5sums.txt' title='MD5 checksums for OpenOffice.org " + VERSION + "'>MD5 checksums"
+ + "</a></p>"
+ + "</div>" );
+
+ entourage.initialize();
+ //-->
+ </script>
+
+<!-- Green: Stable release: No JavaScript enabled -->
+ <noscript>
+ <div class="button green" id="optionitem1" onclick="openItem('optionitem1','other.html#tested-full'); return false;">
+ <h2><a href="other.html" title="Select from other platforms and languages to download">Download OpenOffice.org</a></h2>
+ <p><a href="other.html" title="Select from other platforms and languages to download">
+ JavaScript needs to be enabled to take full advantage of this download section. Currently it does not seem to be enabled.
+ Please click on this text to use the alternative webpage to select the favorite platform and language.</a></p>
+ </div>
+ <div class="sub-green">
+ <p><a href="other.html" title="Get all platforms, languages, language packs to download">
+ <b>Searching for another version?</b> Get all platforms, languages, language packs</a> |
+ <a href="http://www.openoffice.org/development/releases/" title="What is new, what has been improved in OpenOffice.org?">
+ Release Notes</a> |
+ <a href="md5sums/index.html" title="MD5 checksums for OpenOffice.org">MD5 checksums</a></p>
+ </div>
+ </noscript>
+
+<!-- Blue: Extensions -->
+ <div class="button blue" id="optionitem3" onclick="openItem('optionitem3','http://extensions.openoffice.org');
+ return false;">
+ <h2><a href="http://extensions.openoffice.org" title="Choose from a wide range of additional and individual
+ functionality">Get OpenOffice.org Extensions</a></h2>
+ <p><a href="http://extensions.openoffice.org" title="Choose from a wide range of additional and individual
+ functionality">
+ Extend your OpenOffice.org functionality with a large and growing library of extensions with other users.</a></p>
+ </div>
+
+<!-- Blue: Templates -->
+ <div class="button blue" id="optionitem3" onclick="openItem('optionitem3','http://templates.openoffice.org');
+ return false;">
+ <h2><a href="http://templates.openoffice.org" title="Choose from a wide range of additional and individual
+ documents">Get OpenOffice.org Templates</a></h2>
+ <p><a href="http://templates.openoffice.org" title="Choose from a wide range of additional and individual
+ documents">
+ Extend your OpenOffice.org creativity with a large and growing library of templates with other users.</a></p>
+ </div>
+
+<!-- Yellow: Release Candidate online -->
+ <script type="text/javascript">
+ /*
+ <!--
+ if ( RC_ACTIVE == 1 ) {
+ document.write( "<div class=\"button yellow\" id=\"optionitem4\" onclick=\"openItem('optionitem4',"
+ + "'all_rc.html#untested-full');"
+ + "return false;\">"
+ + "<h2><a href='all_rc.html#untested-full' title='Select from other platforms and languages to download'>"
+ + "Get OpenOffice.org Release Candidates</a></h2>"
+ + "<p><a href='all_rc.html#untested-full' title='Select from other platforms and languages to download'>"
+ + "<b>Most recent: OOo " + RC_NAME + " " + RC_NUMBER + "</b></a></p>"
+ + "</div>" );
+ document.write( "<div class=\"sub-yellow\">"
+ + "<p><a href='all_rc.html' title='Get all platforms, languages, language packs to download'>"
+ + "Get all platforms, languages, language packs</a> | "
+ + "<a href='http://www.openoffice.org/development/releases/" + RC_BUILD + ".html'"
+ + "title='What is new, what has been improved in OpenOffice.org " + RC_NAME + RC_NUMBER + "?'>Release Notes</a> | "
+ + "<a href='next/md5sums/" + RC_BUILD + "_md5sums.txt' title='MD5 checksums for OpenOffice.org " + RC_NAME + RC_NUMBER
+ + "'>MD5 checksums</a></p>"
+ + "</div>" );
+ } else if ( RC_ACTIVE == 0 ) {
+ // Yellow: Release Candidate coming soon
+ document.write( "<div class=\"button yellow\" id=\"optionitem4\">"
+ + "<h2><a>Get OpenOffice.org Release Candidate <small>(" + RC_NAME + RC_NUMBER + " coming soon)</small></a></h2>"
+ + "<p><a>A wide range of platforms and languages will be available."
+ + "<br/><b>Important:</b> These builds are nearly ready but needs to be finally tested and are therefore not "
+ + "released.</a></p>"
+ + "</div>" );
+ }
+ //-->
+ */
+ </script>
+
+<!-- Yellow: Release Candidate: No JavaScript enabled -->
+ <!--
+ <noscript>
+ <div class="button yellow" id="optionitem4" onclick="openItem('optionitem4','all_rc.html#untested-full'); return false;">
+ <h2><a href="all_rc.html" title="Select from all platforms, languages, language packs to download">
+ Get OpenOffice.org Release Candidate</a></h2>
+ <p><a href="all_rc.html" title="Select from other platforms, languages, language packs to download">
+ JavaScript needs to be enabled to take full advantage of this download section. Currently it does not seem to be enabled.
+ Please click on this text to use the alternative webpage to select the favorite platform and language.</a></p>
+ </div>
+ <div class="sub-yellow">
+ <p><a href="all_rc.html" title="Get all platforms, languages, language packs to download">
+ Get all platforms, languages, language packs</a> |
+ <a href="http://www.openoffice.org/development/releases/dev_index.html"
+ title="What is new, what has been improved in OpenOffice.org?">Release Notes</a> |
+ <a href="next/md5sums/index.html" title="MD5 checksums for OpenOffice.org">MD5 checksums</a></p>
+ </div>
+ </noscript>
+ //-->
+
+<!-- Yellow: Beta Release online -->
+ <script type="text/javascript">
+ /*
+ <!--
+ if ( BETA_ACTIVE == 1 ) {
+ document.write( "<div class=\"button yellow\" id=\"optionitem2\" onclick=\"openItem('optionitem2','all_beta.html');"
+ + "return false;\">"
+ + "<h2><a href='all_beta.html' title='Select from all platforms, languages, language packs to download'\">"
+ + "Get OpenOffice.org Beta Release</a></h2>"
+ + "<p><a href='all_beta.html' title='Select from all platforms, languages, language packs to download'\">"
+ + "<b>Most recent: OOo-Dev " + BETA_NAME + " " + BETA_NUMBER + "</b></a></p>"
+ + "</div>" );
+ document.write( "<div class=\"sub-yellow\">"
+ + "<p><a href='all_beta.html' title='Get all platforms, languages, language packs to download'>"
+ + "Get all platforms, languages, language packs</a> | "
+ + "<a href='http://www.openoffice.org/development/releases/" + BETA_BUILD + ".html'"
+ + "title='What is new, what has been improved in OpenOffice.org " + BETA_NAME + BETA_NUMBER + "?'>Release Notes</a> | "
+ + "<a href='next/md5sums/index.html" + BETA_BUILD + "_md5sums.txt' title='MD5 checksums for OpenOffice.org "
+ + BETA_NAME + BETA_NUMBER + "'>MD5 checksums</a></p>"
+ + "</div>" );
+ } else if ( BETA_ACTIVE == 0 ) {
+ // Yellow: Beta Release coming soon
+ document.write( "<div class=\"button yellow\" id=\"optionitem2\">"
+ + "<h2><a>Get OpenOffice.org Beta Release <small>(" + BETA_NAME + BETA_NUMBER + " coming soon)</small></a></h2>"
+ + "<p><a>A wide range of platforms and languages will be available."
+ + "<br/><b>Important:</b> The Beta is feature complete but can contain issues and detailed tests needs to be done."
+ + "</a></p>"
+ + "</div>" );
+ }
+ //-->
+ */
+ </script>
+
+<!-- Yellow: Beta: No JavaScript enabled -->
+ <!--
+ <noscript>
+ <div class="button yellow" id="optionitem2" onclick="openItem('optionitem2','all_beta.html#untested-full'); return false;">
+ <h2><a href="all_beta.html" title="Select from all platforms, languages, language packs to download">
+ Get OpenOffice.org Beta Release</a></h2>
+ <p><a href="all_beta.html" title="Select from all platforms, languages, language packs to download">
+ JavaScript needs to be enabled to take full advantage of this download section. Currently it does not seem to be enabled.
+ Please click on this text to use the alternative webpage to select the favorite platform and language.</a></p>
+ </div>
+ <div class="sub-yellow">
+ <p><a href="all_beta.html" title="Get all platforms, languages, language packs to download">
+ Get all platforms, languages, language packs</a> |
+ <a href="http://www.openoffice.org/development/releases/dev_index.html"
+ title="What is new, what has been improved in OpenOffice.org?">Release Notes</a> |
+ <a href="next/md5sums/index.html" title="MD5 checksums for OpenOffice.org">MD5 checksums</a></p>
+ </div>
+ </noscript>
+ //-->
+
+<!-- Red: Developer Snapshots online -->
+ <script type="text/javascript">
+ /*
+ <!--
+ document.write( "<div class=\"button orange\" id=\"optionitem5\" onclick=\"openItem('optionitem5','next/index.html');"
+ + "return false;\">"
+ + "<h2><a href='next/index.html' title='Select from the most recent OpenOffice.org Developer Snapshots'>"
+ + "Get OpenOffice.org Developer Snapshots</a></h2>" );
+ document.write( "<p><a href='next/index.html' title='Select from the most recent OpenOffice.org Developer "
+ + "Snapshots'><b>" );
+ if ( DEV1_VERSION != "" ) {
+ document.write( "Most recent: " + DEV1_VERSION + " (" + DEV1_BUILD + ") and " + DEV2_VERSION + " (" + DEV2_BUILD
+ + ")" );
+ } else {
+ document.write( "Most recent: " + DEV2_VERSION + " (" + DEV2_BUILD + ")" );
+ }
+ document.write( "</b></a></p>"
+ + "</div>" );
+ document.write( "<div class=\"sub-orange\">"
+ + "<p><a href='next/other.html' title='Get all platforms, languages, SDK builds, source tarballs to download'>"
+ + "Get all platforms, languages, SDK builds, source tarballs</a> | "
+ + "<a href='http://www.openoffice.org/development/releases/dev_index.html'"
+ + "title='What is new, what has been improved in OpenOffice.org?'>Release Notes</a> | "
+ + "<a href='next/md5sums/index.html' title='MD5 checksums for OpenOffice.org'>MD5 checksums</a></p>"
+ + "</div>" );
+ //-->
+ */
+ </script>
+
+<!-- Red: Developer Snapshots: No JavaScript enabled -->
+ <!--
+ <noscript>
+ <div class="button orange" id="optionitem5" onclick="openItem('optionitem5','next/index.html'); return false;">
+ <h2><a href="next/other.html" title="Select from the most recent OpenOffice.org Developer Snapshots">
+ Get OpenOffice.org Developer Snapshots</a></h2>
+ <p><a href="next/other.html" title="Select from the most recent OpenOffice.org Developer Snapshots">
+ JavaScript needs to be enabled to take full advantage of this download section. Currently it does not seem to be enabled.
+ Please click on this text to use the alternative webpage to select the favorite platform and language.</a></p>
+ </div>
+ <div class="sub-orange">
+ <p><a href="next/other.html" title="Get all platforms, languages, language packs, SDK builds, source tarballs to
+ download">
+ Get all platforms, languages, language packs, SDK builds, source tarballs</a> |
+ <a href="http://www.openoffice.org/development/releases/dev_index.html" title="What is new, what has been improved in
+ OpenOffice.org?">
+ Release Notes</a> | <a href="next/md5sums/index.html" title="MD5 checksums for OpenOffice.org">MD5 checksums</a></p>
+ </div>
+ </noscript>
+ //-->
+</div>
+
+<div class="additionalinformation">
+
+ <h2>Additional Information</h2>
+ <ul>
+ <li><a href="http://www.openoffice.org/license.html" title="OpenOffice.org License">License</a></li>
+ <li><a href="http://www.openoffice.org/external/3.0/THIRDPARTYLICENSEREADME.html"
+ title="This page contains details about other technologies included in OpenOffice.org and their licenses">
+ 3rd Party content + license</a></li>
+ <li><a href="other.html#tested-sdk" title="For developers and power users: build OpenOffice.org from scratch.">Source</a>
+ </li>
+ </ul>
+
+ <h3>Documentation</h3>
+ <ul>
+ <li><a href="http://www.openoffice.org/development/releases/" title="What is new, what has been improved in
+ OpenOffice.org?">Release Notes</a>
+ </li>
+ <li><a href="md5sums/index.html" title="MD5 checksums for released versions">MD5 checksums</a></li>
+ <li><a href="http://www.openoffice.org/dev_docs/source/sys_reqs_30.html"
+ title="HDD: ~300MB free - Memory: >128MB - Processor: >500MHz - OS: Win, Linux, Mac, Solaris, FreeBSD...">
+ System Requirements</a></li>
+ <li><a href="http://www.openoffice.org/documentation/" title="Extensive user manuals for every day use">
+ User Guides</a></li>
+ <li><a href="http://www.openoffice.org/development/releases/eol.html" title="Information about releases that have
+ reached End-Of-Life status">
+ End-Of-Life Information</a></li>
+ <li><a href="http://www.openoffice.org/support" title="If the information above did not answer your question:
+ Free and paid support!">Support</a></li>
+ <li><a href="http://java.com/en/download/manual.jsp" title="Get most recent Java Runtime Environment (JRE)">
+ Get the most recent Java (JRE)</a></li>
+ </ul>
+
+ <h3>Additional Resources</h3>
+ <ul>
+ <li><a href="http://templates.openoffice.org" title="Get a headstart with OpenOffice.org">Templates</a></li>
+ <li><a href="http://extensions.openoffice.org"
+ title="Choose from a wide range of additional and individual functionality">Extensions</a></li>
+ <li><a href="http://www.openoffice.org/projects/native-lang.html" title="Information and support in your favorite
+ language">Localizations</a></li>
+ <li><a href="other.html#tested-sdk" title="For developers: Software Development Kit">Software Development Kit (SDK)</a></li>
+ <li><a href="http://www.openoffice.org/distribution/mirrors#mirrors" title="To get alternative download locations">
+ All Mirror Server</a><br/></li>
+ <li><a href="../archive.html" title="Download legacy and archived releases">Archived legacy releases</a><br/></li>
+ </ul>
+
+ <div id="SupportedAndSupporters">
+ <a href="http://validator.w3.org/check?uri=http://www.openoffice.org/download/index.html"
+ title="W3C Markup Validation Service - Check the markup (HTML, XHTML, ...) of Web documents">
+ <img src="http://www.w3.org/Icons/valid-xhtml10-blue.png"
+ alt="W3C Markup Validation Service - Check the markup (HTML, XHTML, ...) of Web documents"/></a>
+
+ <a href="http://www.mirrorbrain.org" title="MirrorBrain - A download redirector and metalink generator">
+ <img src="http://mirrorbrain.org/static/images/powered-by-mirrorbrain-50x128-transparent.png"
+ alt="MirrorBrain - A download redirector and metalink generator"/></a>
+ </div>
+</div>
+
+
+ </div>
+
+<!--#include virtual="/footer.html" -->
+
+</body>
+</html>