Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require_once('markdown.php');
- $page = $_GET['page'];
- if (!$page) $page = 'index';
- if (!file_exists("./pages/$page.md")) {
- header("Status: 404 Not Found");
- $page = '404';
- }
- $text = Markdown( file_get_contents("./pages/$page.md") );
Add Comment
Please, Sign In to add comment