simple_blog/license/index.php
2022-07-04 15:12:03 -04:00

61 lines
3.6 KiB
PHP

<?php
function display_file($license_file){
$out = file_get_contents($license_file);
echo "<pre><code>".$out."</code></pre>";
}
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/header.php');
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/menu.php');
?>
<article>
<p>A summery of all licenses that apply to this website.</p>
<h2>simple_blog License</h2>
<font size="2">
Copyright <?php echo(strftime("%Y")); ?> 20xd6<br>
<br>
This program is free software; you can redistribute it and/or modify<br>
it under the terms of the GNU General Public License as published by<br>
the Free Software Foundation; either version 2 of the License, or<br>
(at your option) any later version.<br>
<br>
This program is distributed in the hope that it will be useful,<br>
but <b>WITHOUT ANY WARRANTY</b>; without even the implied warranty of<br>
<b>MERCHANTABILITY</b> or <b>FITNESS FOR A PARTICULAR PURPOSE</b>. See the<br>
GNU General Public License for more details.<br>
<br>
You should have received a copy of the GNU General Public License<br>
along with this program; if not, write to the Free Software<br>
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,<br>
MA 02110-1301, USA.<br>
<br>
A copy of the GPL may be found <a href="/license/GPLv2.php">here</a>.
</font>
<br><br>
<h2>Website's Writings</h2>
<p>
<a rel="license" href="http://creativecommons.org/licenses/by/3.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/3.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 Unported License</a> unless otherwise noted.
</p>
<h2>Specific File Licenses</h2>
<h3><a href="https://github.com/jamesjohnson280/JMenu">Jmenu</a></h3>
<blockquote><p>A simple responsive CSS Menu library. JMenu requires no Javascript and it's easy to customize.</p></blockquote>
<p>JMenu is used to create the responsive menus on this site.<br>
JMenu has been customized to match the color scheme of the site.<br/>
JMenu is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<?php display_file("MIT_License.txt"); ?>
<h3><a href="https://github.com/erusev/parsedown">Parsedown</a></h3>
<blockquote><p>Better Markdown Parser in PHP - <a href="http://parsedown.org/demo">Demo</a>.</p></blockquote>
<p>Parsedown is used for all of the Markdown processing for this site.<br/>
Parsedown is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<?php display_file($_SERVER['DOCUMENT_ROOT'].'/common/vendor/erusev/parsedown/LICENSE.txt');?>
<h3><a href="https://github.com/erusev/parsedown-extra">Parsedown Extra</a></h3>
<blockquote><p>An extension of <a href="https://github.com/erusev/parsedown">Parsedown</a> that adds support for <a href="https://michelf.ca/projects/php-markdown/extra/">Markdown Extra.</a></p></blockquote>
<p>Pasrsedown-extra is used primarily to add support for footnotes in articles. <br/>Parsedown-extra is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<?php display_file($_SERVER['DOCUMENT_ROOT'].'/common/vendor/erusev/parsedown-extra/LICENSE.txt');?>
<h3>Prism</h3>
<blockquote><p>Prism is a lightweight, robust, and elegant syntax highlighting library. It's a spin-off project from <a href="https://dabblet.com/">Dabblet</a>.<br/>
You can learn more on <a href="https://prismjs.com/">prismjs.com</a>.</p></blockquote>
<p>Prism is used for syntax highlighting is simple_blog.<br/>
Prism is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<?php display_file("MIT_License.txt"); ?>
</article>
<?php include_once ($_SERVER['DOCUMENT_ROOT'].'/common/footer.php');?>