+require_once('library/markdown.php');
+
+if (!function_exists('load_doc_file')) {
+
+ function load_doc_file($s) {
+ global $lang;
+ if (!isset($lang))
+ $lang = 'en';
+ $b = basename($s);
+ $d = dirname($s);
+ if (file_exists("$d/$lang/$b"))
+ return file_get_contents("$d/$lang/$b");
+ if (file_exists($s))
+ return file_get_contents($s);
+ return '';
+ }