| <?php |
| |
| $Nav->setLinkList(null); |
| |
| $PR = "emf"; |
| |
| $isEMFserver = (preg_match("/^emf(?:\.torolab\.ibm\.com)$/", $_SERVER["SERVER_NAME"])); |
| $isBuildServer = (preg_match("/^(emft|build)\.eclipse\.org$/", $_SERVER["SERVER_NAME"])) || $isEMFserver; |
| $isBuildDotEclipseServer = $_SERVER["SERVER_NAME"] == "build.eclipse.org"; |
| $isWWWserver = (preg_match("/^(?:www.|)eclipse.org$/", $_SERVER["SERVER_NAME"])); |
| $isEclipseCluster = (preg_match("/^(?:www.||download.|download1.|build.)eclipse.org$/", $_SERVER["SERVER_NAME"])); |
| $debug = (isset ($_GET["debug"]) && preg_match("/^\d+$/", $_GET["debug"]) ? $_GET["debug"] : -1); |
| $writableRoot = ($isBuildServer ? $_SERVER["DOCUMENT_ROOT"] . "/modeling/includes/" : "/home/data/httpd/writable/www.eclipse.org/"); |
| $writableBuildRoot = $isBuildDotEclipseServer ? "/opt/public/modeling" : "/home/www-data"; |
| |
| $rooturl = "http://" . $_SERVER["HTTP_HOST"] . "/$PR"; |
| $downurl = ($isBuildServer ? "" : "http://www.eclipse.org"); |
| $bugurl = "https://bugs.eclipse.org"; |
| |
| if (isset ($_GET["skin"]) && preg_match("/^(Blue|EclipseStandard|Industrial|Lazarus|Miasma|Modern|OldStyle|Phoenix|PhoenixTest|PlainText)$/", $_GET["skin"], $regs)) |
| { |
| $theme = $regs[1]; |
| } |
| else |
| { |
| $theme = "Phoenix"; |
| } |
| |
| /* projects/components in cvs */ |
| /* "proj" => "cvsname" */ |
| $cvsprojs = array( |
| "emf" => "org.eclipse.emf" |
| ); |
| |
| /* sub-projects/components in cvs for projects/components above (if any) */ |
| /* "cvsname" => array("shortname" => "cvsname") */ |
| $cvscoms = array(); |
| |
| $projects = array ( |
| "EMF & SDO" => "emf" |
| ); |
| |
| $extraprojects = array(); //projects with only downloads, no info yet, "prettyname" => "directory" |
| $nodownloads = array(); //projects with only information, no downloads, or no builds available yet, "projectkey" |
| $nonewsgroup = array (); //projects without newsgroup |
| $nomailinglist = array (); //projects without mailinglist |
| $incubating = array(); // projects which are incubating - EMF will never have incubating components! |
| |
| $nomenclature = "Component"; //are we dealing with "components" or "projects"? |
| |
| $regs = null; |
| $proj = (isset ($_GET["project"]) && preg_match("/^(" . join("|", $projects) . ")$/", $_GET["project"], $regs) ? $regs[1] : ""); |
| |
| $buildtypes = array( |
| "R" => "Release", |
| "S" => "Stable", |
| "I" => "Integration", |
| "M" => "Maintenance", |
| "N" => "Nightly" |
| ); |
| |
| // this isn't quite the same as EMFT or MDT... yet |
| $Nav->addNavSeparator("EMF", "$rooturl/?project=emf"); |
| $Nav->addCustomNav("SDO", "$rooturl/?project=sdo", "_self", 2); |
| |
| $Nav->addNavSeparator("Downloads", "$downurl/$PR/downloads/?project=$proj"); |
| $Nav->addCustomNav("Installation", "$rooturl/downloads/install.php", "_self", 2); |
| $Nav->addCustomNav("Update Manager", "$rooturl/updates/", "_self", 2); |
| |
| $Nav->addNavSeparator("Documentation", "$rooturl/docs/"); |
| $Nav->addCustomNav("Getting Started", "http://dev.eclipse.org/viewcvs/indextools.cgi/*checkout*/org.eclipse.emf/doc/org.eclipse.emf.doc/references/overview/EMF.html", "_self", 2); |
| $Nav->addCustomNav("FAQ", "$rooturl/faq/", "_self", 2); |
| $Nav->addCustomNav("Release Notes", "http://www.eclipse.org/modeling/emf/news/relnotes.php?project=emf&version=HEAD", "_self", 2); |
| $Nav->addCustomNav("Search CVS", "$rooturl/searchcvs.php?q=project%3A+org.eclipse.emf+days%3A+7", "_self", 2); |
| |
| $Nav->addNavSeparator("Community", "http://wiki.eclipse.org/index.php/Modeling_Corner"); |
| $Nav->addCustomNav("Wiki", "http://wiki.eclipse.org/index.php/Eclipse_Modeling_Framework", "_self", 2); |
| $Nav->addCustomNav("Newsgroups", "$rooturl/newsgroup-mailing-list.php", "_self", 2); |
| $Nav->addCustomNav("Modeling Corner", "http://wiki.eclipse.org/index.php/Modeling_Corner", "_self", 2); |
| $collist = "%26query_format%3Dadvanced&column_changeddate=on&column_bug_severity=on&column_priority=on&column_rep_platform=on&column_bug_status=on&column_product=on&column_component=on&column_version=on&column_target_milestone=on&column_short_short_desc=on&splitheader=0"; |
| $Nav->addCustomNav("Open Bugs", "$bugurl/bugs/colchange.cgi?rememberedquery=product%3DEMF%2CXSD%26bug_status%3DNEW%26bug_status%3DASSIGNED%26bug_status%3DREOPENED%26order%3Dbugs.bug_status%2Cbugs.target_milestone%2Cbugs.bug_id" . $collist, "_self", 2); |
| $Nav->addCustomNav("Submit A Bug", "$bugurl/bugs/enter_bug.cgi?product=EMF", "_self", 2); |
| $Nav->addCustomNav("Contributors", "$rooturl/eclipse-project-ip-log.csv", "_self", 2); |
| |
| include_once $_SERVER["DOCUMENT_ROOT"] . "/emf/includes/scripts.php"; |
| ?> |