| <?php |
| /******************************************************************************* |
| * Copyright (c) 2016 Eclipse Foundation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Christopher Guindon (Eclipse Foundation) - Initial implementation |
| *******************************************************************************/ |
| |
| 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' |
| |
| # Begin: page-specific settings. Change these. |
| $pageTitle = "Developer Certificate of Origin"; |
| $pageKeywords = "certificate, Developer Certificate of Origin, contributor, legal, eclipse"; |
| $pageAuthor = "Mike Milinkovich"; |
| |
| # Paste your HTML content between the EOHTML markers! |
| $html = '<div id="midcolumn">'; |
| |
| // Fetch DCO.HTML and return evertying in <body> |
| $document = new DOMDocument; |
| $new_document = new DOMDocument; |
| $document->loadHTML(file_get_contents('DCO.html')); |
| $body = $document->getElementsByTagName('body')->item(0); |
| foreach ($body->childNodes as $child){ |
| $new_document->appendChild($new_document->importNode($child, true)); |
| } |
| |
| $html .= $new_document->saveHTML(); |
| $html .= '</div>'; |
| ob_start(); |
| include('content/eca_sidebar.php'); |
| $html .= ob_get_clean(); |
| |
| # Generate the web page |
| $App->generatePage($theme, $Menu, $Nav, $pageAuthor, $pageKeywords, $pageTitle, $html); |