Add documentation. #13

Merged
20xd6 merged 12 commits from manfromhuh/simple_blog:master into master 2022-07-05 15:22:31 -04:00
Showing only changes of commit 58f94c415d - Show all commits

View File

@@ -1,7 +1,10 @@
<?php
//The common file used to render pages on the blog.
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/header.php');
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/menu.php');
if (file_exists('article.md')){
//Looks for an article.md to see if the current directory is an article or not
//If it is not then it is a menu page.
if (file_exists('article.md')){
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/md_read.php');
} else {
include_once ($_SERVER['DOCUMENT_ROOT'].'/common/h1_month.php');