3 require("../config.php");
5 $file = optional_param('file', "", PARAM_FILE
); // docs file to view straight
6 $frame = optional_param('frame', "", PARAM_FILE
); // docs file to view in frame
7 $sub = optional_param('sub', "", PARAM_CLEAN
); // sub-section (named anchor)
9 if ($CFG->forcelogin
) {
30 if (! document_file($file, $include)) {
31 error("Error 404 - File Not Found");
41 <title
><?php
print_string("documentation")?
></title
>
44 <frameset rows
="70,*">
45 <frame name
="top" src
="top.php">
46 <frameset cols
="200,*">
47 <frame name
="contents" src
="contents.php">
48 <frame name
="main" src
="index.php?file=<?php echo "$file$sub"; ?>">