mirror of
https://github.com/moodle/moodle.git
synced 2025-01-21 07:28:31 +01:00
5b13d65b07
end result back to normal.
37 lines
754 B
PHP
Executable File
37 lines
754 B
PHP
Executable File
<?PHP // $Id$
|
|
|
|
require("../config.php");
|
|
|
|
if (! $info = document_file("files.php", false)) {
|
|
error("404 - File Not Found");
|
|
}
|
|
|
|
$string = array();
|
|
if ($CFG->forcelogin) {
|
|
require_login();
|
|
}
|
|
|
|
include($info->filepath);
|
|
|
|
print_header();
|
|
|
|
$ulopen = false;
|
|
|
|
foreach ($string as $file => $filename) {
|
|
if (substr($file,0,1) == "-") {
|
|
if($ulopen) {
|
|
echo '</ul>';
|
|
}
|
|
echo '<h1>'.$filename.'</h1><ul>';
|
|
$ulopen = true;
|
|
} else {
|
|
echo '<li><a target="main" href="'.$CFG->wwwroot.'/doc/?file='.$file.'">'.$filename.'</a></li>';
|
|
}
|
|
}
|
|
if($ulopen) {
|
|
echo '</ul>';
|
|
}
|
|
|
|
|
|
?>
|