mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
39 lines
774 B
PHP
39 lines
774 B
PHP
<?PHP // $Id$
|
|
|
|
require("../config.php");
|
|
|
|
optional_variable($file, ""); // docs file to view
|
|
optional_variable($lang, ""); // override current language
|
|
|
|
if (!empty($lang)) {
|
|
$SESSION->doclang = $lang;
|
|
save_session("SESSION");
|
|
}
|
|
|
|
if (empty($file)) {
|
|
$include = false;
|
|
$file = "intro.html";
|
|
} else {
|
|
$include = true;
|
|
}
|
|
|
|
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="index.php?file=<?PHP echo "$file"; ?>">
|
|
</FRAMESET>
|
|
</FRAMESET>
|