diff options
Diffstat (limited to 'releases/3.15/index.php')
-rwxr-xr-x | releases/3.15/index.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/releases/3.15/index.php b/releases/3.15/index.php new file mode 100755 index 000000000..44a28f411 --- /dev/null +++ b/releases/3.15/index.php @@ -0,0 +1,28 @@ +<?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' +$pageKeywords = ""; +$pageAuthor ="Nick Boldt @ Red Hat"; + +$root = $_SERVER['DOCUMENT_ROOT']; +require_once ($root . '/webtools/common.php'); + +# Generate the web page +// Load the XML source +$xml = DOMDocument::load('index.xml'); + +//Set the page title +$xpath = new DOMXPath($xml); +$titleNode = $xpath->query("/html/head/title")->item(0); +$pageTitle = ($titleNode != null) ? $titleNode->nodeValue : "eclipse.org webtools page"; + +// Load the XSL source +$xsl = DOMDocument::load($root . '/webtools/wtpnova.xsl'); + +// Configure the transformer +$proc = new XSLTProcessor; +$proc->importStyleSheet($xsl); // attach the xsl rules + +$html = $proc->transformToXML($xml); +$html .= $wtpTopButtons; + +$App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); +?> |