diff options
Diffstat (limited to 'lib/static/view.php')
-rw-r--r-- | lib/static/view.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/static/view.php b/lib/static/view.php new file mode 100644 index 0000000..e3f8752 --- /dev/null +++ b/lib/static/view.php @@ -0,0 +1,13 @@ +<?php + +require ("lib/conf/static.php"); +require("lib/markdown.php"); + +if (isset($static_pages[$args[2]])) { + + $title = $static_pages[$args[2]]; + $text = file_get_contents("lib/static/" . $args[2] . ".md"); + $text = Markdown($text); + + require("tpl/general/static.php"); +} |