Compare commits

...

6 Commits

Author SHA1 Message Date
6b06c36b0b Merge pull request 'Update to upstream master' (#1) from 20xd6/simple_blog:master into master
Reviewed-on: #1
2022-07-05 15:10:54 -04:00
a2ee59d2f3 Fix for issue#8
The array was being processed such that it would stop when it reached
the number of row not the number of coloums.
2022-07-05 10:56:02 -04:00
efcea55a8d Add the license informtion for Prism.
Resolves issue#3
2022-07-04 15:12:03 -04:00
5f3465bc9a Merge pull request 'Update /licenses/' (#1) from manfromhuh/simple_blog:update_licenses into master
Reviewed-on: 20xd6/simple_blog#1
2022-07-04 14:53:56 -04:00
9d9711cccc Add Parsedown-extra to /license/
Add the license information for Pasedown-extra to /license/index.php
2022-07-02 09:53:42 -04:00
6df7971792 Clarify licensing
A change was made to the <h2> header for the license applying to simple_blog itself to clarify what that license is for. The GPL is only attached to the code used to render the site and not the Markdown parser or menu CSS. These components are licensed MIT.
2022-07-02 09:40:46 -04:00
3 changed files with 15 additions and 4 deletions

1
README.md Normal file
View File

@ -0,0 +1 @@
# simple_blog

View File

@ -43,12 +43,12 @@
//echo "</pre>\n"; //echo "</pre>\n";
echo "<ul id=\"tag_menu\">\n"; echo "<ul id=\"tag_menu\">\n";
$coloum_number = 0; $coloum_number = 0;
for ($row_number = 0; $row_number < $tags_rows; $row_number++){ for ($row_number = 0; $row_number <= $tags_coloums; $row_number++){
#echo $row_number; //echo $row_number;
$section_title = $tags_csv[0][$coloum_number]; $section_title = $tags_csv[0][$coloum_number];
echo "\t<li id=\"" . $section_title . "\"><b>" . $section_title . " </b>\n"; echo "\t<li id=\"" . $section_title . "\"><b>" . $section_title . " </b>\n";
for ($row = 1; $row < $tags_coloums; $row++){ for ($row = 1; $row < $tags_coloums; $row++){
#echo "rn: " . $row_number . "\ncn:" . $coloum_number; //echo "rn: " . $row . "\ncn:" . $coloum_number ." ";
$tag_content = $tags_csv[$row][$coloum_number]; $tag_content = $tags_csv[$row][$coloum_number];
if ($tag_content == ""){ if ($tag_content == ""){
break; break;

View File

@ -8,7 +8,7 @@ include_once ($_SERVER['DOCUMENT_ROOT'].'/common/menu.php');
?> ?>
<article> <article>
<p>A summery of all licenses that apply to this website.</p> <p>A summery of all licenses that apply to this website.</p>
<h2>Code License</h2> <h2>simple_blog License</h2>
<font size="2"> <font size="2">
Copyright <?php echo(strftime("%Y")); ?> 20xd6<br> Copyright <?php echo(strftime("%Y")); ?> 20xd6<br>
<br> <br>
@ -46,5 +46,15 @@ JMenu is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<p>Parsedown is used for all of the Markdown processing for this site.<br/> <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> Parsedown is <a href="/license/MIT.php">MIT Licensed</a>.</p>
<?php display_file($_SERVER['DOCUMENT_ROOT'].'/common/vendor/erusev/parsedown/LICENSE.txt');?> <?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> </article>
<?php include_once ($_SERVER['DOCUMENT_ROOT'].'/common/footer.php');?> <?php include_once ($_SERVER['DOCUMENT_ROOT'].'/common/footer.php');?>