|  | <?php | 
|  | require_once ("../../includes/buildServer-common.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()); | 
|  |  | 
|  | /* redirect for emft projects */ | 
|  | if (isset($_GET["project"]) && isset($emft_download_redirects) && is_array($emft_download_redirects) && array_key_exists($_GET["project"],$emft_download_redirects)) | 
|  | { | 
|  | header("Location: " . $emft_download_redirects[$_GET["project"]]); | 
|  | exit; | 
|  | } | 
|  |  | 
|  | ob_start(); | 
|  |  | 
|  | /* config */ | 
|  | /* zips that are allowed to be absent from the downloads page (eg., new ones added/removed mid-stream) */ | 
|  | $extraZips = array( | 
|  | "emft-mwe-Automated-Tests", | 
|  | ); | 
|  |  | 
|  | /* $project => sections/Project Name => (prettyname => filename) */ | 
|  | /* only required if using something other than the default 4; otherwise will be generated */ | 
|  | $dls = array( | 
|  | /*"/newProj" => array( | 
|  | "Project Name" => array( # same as value in _projectCommon.php's $projects array | 
|  | "<acronym title=\"Click to download archived All-In-One p2 Repo Update Site\"><img alt=\"Click to download archived All-In-One p2 Repo Update Site\" src=\"/modeling/images/dl-icon-update-zip.gif\"/> <b style=\"color:green\">All-In-One Update Site</b></acronym>" => "Update", | 
|  | "SDK (Runtime, Source)" => "SDK", | 
|  | "Runtime" => "runtime", | 
|  | "Examples" => "examples", | 
|  | "Automated Tests" => "automated-tests" | 
|  | ) | 
|  | ),*/ | 
|  | "/mwe" => array( | 
|  | "Model Workflow Engine" => array( | 
|  | "<acronym title=\"Click to download archived All-In-One p2 Repo Update Site\"><img alt=\"Click to download archived All-In-One p2 Repo Update Site\" src=\"/modeling/images/dl-icon-update-zip.gif\"/> <b style=\"color:green\">All-In-One Update Site MWE</b></acronym>" => "Update", | 
|  | "<acronym title=\"Click to download archived All-In-One p2 Repo Update Site\"><img alt=\"Click to download archived All-In-One p2 Repo Update Site\" src=\"/modeling/images/dl-icon-update-zip.gif\"/> <b style=\"color:green\">All-In-One Update Site MWE2 Language</b></acronym>" => "2-lang-Update", | 
|  | "SDK MWE(Runtime, Source)" => "SDK", | 
|  | "SDK MWE2 (Runtime, Source)" => "2-SDK", | 
|  | "SDK MWE2 Language (Runtime, Source)" => "2-lang-SDK", | 
|  | "Automated Tests" => "Automated-Tests" | 
|  | ) | 
|  | ), | 
|  | "/compare" => array( | 
|  | "EMF Compare" => array( | 
|  | "<acronym title=\"Click to download archived All-In-One p2 Repo Update Site\"><img alt=\"Click to download archived All-In-One p2 Repo Update Site\" src=\"/modeling/images/dl-icon-update-zip.gif\"/> <b style=\"color:green\">All-In-One Update Site</b></acronym>" => "Update", | 
|  | "SDK (Runtime, Source)" => "SDK", | 
|  | "Runtime" => "runtime", | 
|  | "Subversive Integration" => "subversive-integration", | 
|  | "Examples" => "examples", | 
|  | "Automated Tests" => "automated-tests" | 
|  | ) | 
|  | ), | 
|  |  | 
|  | ); | 
|  |  | 
|  | /* list of valid file prefixes for projects who have been renamed; keys have leading / to match $proj */ | 
|  | /* only required if using something other than the default; otherwise will be generated */ | 
|  | $filePre = array( | 
|  | /* "/newproj" => array("emft-newproj", "emf-newproj"), */ | 
|  | "/mwe" => array("emft-mwe") | 
|  | ); | 
|  |  | 
|  | /* define showNotes(), $oldrels, doLanguagePacks() in extras-$proj.php (or just extras.php for flat projects) if necessary, downloads-common.php will include them */ | 
|  | /* end config */ | 
|  |  | 
|  | if ($isBuildServer) { include_once $_SERVER["DOCUMENT_ROOT"] . "/modeling/emft/build/sideitems-common.php"; } | 
|  | require_once($_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/downloads-common.php"); | 
|  |  | 
|  | $html = ob_get_contents(); | 
|  | ob_end_clean(); | 
|  |  | 
|  | $trans = array_flip($projects); | 
|  | $pageTitle = "Eclipse Modeling - EMFT - $trans[$projct] - Downloads"; | 
|  | $pageKeywords = ""; // TODO: add something here | 
|  | $pageAuthor = "Neil Skrypuch, Nick Boldt"; | 
|  |  | 
|  | # Generate the web page | 
|  | $App->AddExtraHtmlHeader('<link rel="stylesheet" type="text/css" href="/modeling/includes/downloads.css"/>' . "\n"); | 
|  | $App->AddExtraHtmlHeader('<script src="/modeling/includes/downloads.js" type="text/javascript"></script>' . "\n"); //ie doesn't understand self closing script tags, and won't even try to render the page if you use one | 
|  | $App->AddExtraHtmlHeader('<link type="application/rss+xml" rel="alternate" title="EMFT '.$trans[$projct].' Build Feed" href="http://www.eclipse.org/modeling/download.php?file=/'.$PR.'/feeds/builds-'.$projct.'.xml"/>' . "\n"); | 
|  | $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); | 
|  |  | 
|  | ?> |