moodle/doc/index.php
moodler f1dacb2ed0 Changes to how documentation works. A thin PHP interface now fetches
files from the language packs.  If a file isn't available in the current
language, then English is used.
2002-12-29 14:39:52 +00:00

33 lines
610 B
PHP

<?PHP // $Id$
require("../config.php");
optional_variable($file, ""); // docs file to view
if (empty($file)) {
$include = false;
$file = "intro.html";
} else {
$include = true;
}
$info = document_file($file, $include);
if ($include) {
exit;
}
?>
<HEAD>
<TITLE>Moodle Documentation</TITLE>
</HEAD>
<FRAMESET ROWS="70,*">
<FRAME NAME="top" SRC="top.php">
<FRAMESET COLS="200,*">
<FRAME NAME="contents" SRC="contents.php">
<FRAME NAME="main" SRC="<?PHP echo "$info->urlpath"; ?>">
</FRAMESET>
</FRAMESET>