Initial Commit
Add the basic structure of the site.
This commit is contained in:
14
license/GPLv2.php
Normal file
14
license/GPLv2.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
require ($_SERVER['DOCUMENT_ROOT'].'/common/vendor/autoload.php');
|
||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/header.php');
|
||||
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/menu.php');
|
||||
#Markdown parseing code.
|
||||
$MD_Parser = new Parsedown();
|
||||
$MD_Path = "gplv2.md";
|
||||
$MD_File = fopen($MD_Path, "r") or die("File not found.");
|
||||
$MD_Text = fread($MD_File, filesize($MD_Path));
|
||||
echo "<article>".$MD_Parser->text($MD_Text);
|
||||
fclose($MD_File);
|
||||
echo "<p>A text version of this document can be found <a href=\"/GPLv2.txt\">here</a>.</p>\n</article>";
|
||||
include ($_SERVER['DOCUMENT_ROOT'].'/common/footer.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user