blob: ed6af5714590dc14a907deecfd627f451d2ac5e4 [file] [log] [blame]
<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'
require_once($_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/buildServer-common.php");
require_once($_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/downloads-scripts.php");
require_once($_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/scripts.php");
require_once("./custom-scripts.php");
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="/modeling/includes/common.css"/>' . "\n\t");
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="/modeling/includes/downloads.css"/>' . "\n\t");
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="styles.css"/>' . "\n\t");
$App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="_styles.css"/>' . "\n\t");
$App->AddExtraHtmlHeader('<script src="/modeling/includes/downloads.js" type="text/javascript"></script>' . "\n\t");
#### Project dependant variables ####
$projectTitle = "ATL";
$pageTitle = "ATL - Download";
// Path to the downloads area under http://downloads.eclipse.org (will be used by custom-scripts and various "eclipse" scripts)
$PR = "mmt/atl";
// absolute path to the site's home page (will be used by custom-scripts for images... should probably use css instead)
$websiteRoot = "/atl";
# version => array of qualifiers
# ex : "3.3.0" => array("R201205291042")
$hiddenBuilds = array(
);
#### End variables ####
$PWD = getPWD("downloads/drops");
$branches = loadDirSimple($PWD, ".*", "d");
rsort($branches);
$buildtypes = array(
"R" => "Release",
"S" => "Stable",
"I" => "Integration",
"M" => "Maintenance",
"N" => "Nightly"
);
$buildTypes = getBuildTypes($branches, $buildtypes);
// Retrieve the list of builds from the disk (folder list only)
$builds = getBuildsFrom($branches, $PWD);
$builds = reorderAndSplitBuilds($builds, $buildTypes, $hiddenBuilds);
$releases = $builds[1];
$builds = $builds[0];
$oldrels = array(
"3.2.0" => array("2011/06/08","http://archive.eclipse.org/mmt/atl/downloads/drops/3.2.0/R201106080518/m2m-atl-Update-3.2.0.zip"),
"3.1.1" => array("2010/09/14","http://archive.eclipse.org/mmt/atl/downloads/drops/3.1.1/R201009141132/m2m-atl-Update-3.1.1.zip"),
"3.1.0" => array("2010/06/15","http://archive.eclipse.org/mmt/atl/downloads/drops/3.1.0/R201006150240/m2m-atl-Update-3.1.0.zip"),
"3.0.2" => array("2010/03/15","http://archive.eclipse.org/mmt/atl/downloads/drops/3.0.2/R201003150627/m2m-atl-Update-3.0.2.zip"),
"3.0.1" => array("2009/09/22","http://archive.eclipse.org/mmt/atl/downloads/drops/3.0.1/R200909220532/m2m-atl-Update-3.0.1.zip"),
"3.0.0" => array("2009/06/22","http://archive.eclipse.org/mmt/atl/downloads/drops/3.0.0/R200906220943/m2m-atl-Update-3.0.0.zip"),
"2.0.2" => array("2008/12/19","http://archive.eclipse.org/mmt/atl/downloads/drops/2.0.2/R200812191010/m2m-atl-Update-2.0.2.zip"),
"2.0.1" => array("2008/09/17","http://archive.eclipse.org/mmt/atl/downloads/drops/2.0.1/R200809170426/m2m-atl-Update-2.0.1.zip"),
"2.0.0" => array("2008/06/10","http://archive.eclipse.org/mmt/atl/downloads/drops/2.0.0/R200806101117/m2m-atl-Update-2.0.0.zip")
);
$html = file_get_contents('_index.html');
$html .= "<div id=\"midcolumn\">\n";
$html .= "<ul>\n";
$html .= generateHTMLReleaseList($releases, $projectTitle, $PR, $PWD, $websiteRoot);
$html .= generateHTMLBuildList($builds, $projectTitle, $PR, $PWD, $websiteRoot);
$html .= "</ul>\n";
$html .= "</div>\n\n";
# Generate the web page
$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html);
?>