3 if(! function_exists('load_doc_file')) {
4 function load_doc_file($s) {
10 if(file_exists("$d/$lang/$b"))
11 return file_get_contents("$d/$lang/$b");
13 return file_get_contents($s);
19 function help_content(&$a) {
20 nav_set_selected('help');
24 require_once('library/markdown.php');
29 $text = load_doc_file('doc/' . $a->argv[1] . '.md');
30 $a->page['title'] = t('Help:') . ' ' . str_replace('-',' ',notags($a->argv[1]));
33 $text = load_doc_file('doc/Home.md');
34 $a->page['title'] = t('Help');
38 header($_SERVER["SERVER_PROTOCOL"] . ' 404 ' . t('Not Found'));
39 $tpl = get_markup_template("404.tpl");
40 return replace_macros($tpl, array(
41 '$message' => t('Page not found.' )
45 return Markdown($text);