blob: 118e55b43a5f3970189a89bcc40cf2d13298eb88 [file] [log] [blame]
<?php
/**
* Copyright (c) 2017, 2022 Eclipse Foundation and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* Contributors:
* Wayne Beaton (Eclipse Foundation)
* Eric Poirier (Eclipse Foundation)
*
* SPDX-License-Identifier: EPL-2.0
*/
$licenseFile = dirname(__FILE__) . "/../licenses.json";
$licenses = json_decode(file_get_contents($licenseFile), true);
$modified = strtotime($licenses['meta']['updated']);
function dumpLicenseList($licenses) {
asort($licenses);
echo "<ul>";
foreach ($licenses as $spdx => $name) {
echo "<li>{$name} (<a target=\"_spdx\" href=\"https://spdx.org/licenses/{$spdx}\">{$spdx}</a>)</li>";
}
echo "</ul>";
}
?>
<div id="maincontent">
<div id="midcolumn">
<h1><?php echo $pageTitle; ?></h1>
<p>Updated <?php print $App->getFormattedDate($modified); ?></p>
<h3 id="approved">Approved Licenses</h3>
<p>
This approved license list enumerates the licenses that the Eclipse
Foundation has approved for third-party content used by its projects.
Inclusion in this list does not imply that the Eclipse Foundation has
determined that every one of these licenses can be used by your
Eclipse Foundation project. That is, <em>the licenses on this list are
not necessarily compatible with every Eclipse Foundation project
license, or with each other</em>. </p>
<p>If you have any questions about this
list or its use, please contact <a href="license@eclipse.org">license@eclipse.org</a>.
</p>
<?php dumpLicenseList($licenses['approved']); ?>
<h3 id="nonapproved">Non Approved Licenses</h3>
<p>
Other licenses have been approved by the Eclipse Board of Directors
in certain cases.</p>
<p>Please contact <a href="license@eclipse.org">license@eclipse.org</a>
for more information.
</p>
</div>
</div>