"; echo "

Blogs of $blogtitle:

"; require_once './res/php/BlogListGenerator.php'; $blogs = scandir("./blogs/"); foreach ($blogs as $blog){ if(strlen($blog) >= 3 && substr($blog, -3) == ".md"){ if($_GET['blog'] == ""){ if($blog != "main.md"){ BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle); } } else { if($_GET['blog'] . ".md" != $blog){ BlogListGenerator::listBlog("./blogs/", $blog, $blogtitle); } } } } echo ""; } if($_GET['blog'] == ""){ $blog = "main"; } else { $blog = $_GET['blog']; } ?>
setBreaksEnabled(true) ->text($file); echo $intro; } ?>
= 3 && substr($article, -3) == ".md"){ ArticleGenerator::newArticle($articlesdir, $article, $_GET['blog']); } } } } else if($_GET['article'] == ""){ $articles = scandir($articlesdir, 1); foreach ($articles as $article) { if(strlen($article) >= 3 && substr($article, -3) == ".md"){ ArticleGenerator::newArticle($articlesdir, $article, $_GET['blog']); } } } else { ArticleGenerator::newArticle($articlesdir, $_GET['article'] . ".md", $_GET['blog']); include './res/php/SocialBar.php'; include './res/php/Disqus.php'; } ?>