2 // Display all the reports available in admin/report
4 require_once('../config.php');
7 error("You are not allowed to look at this page");
10 $stradmin = get_string('administration');
11 $strreports = get_string('reports');
13 print_header($strreports, $strreports,
14 '<a href="index.php">'.$stradmin.'</a> -> '.$strreports);
16 $directories = get_list_of_plugins('admin/report');
18 foreach ($directories as $directory) {
19 echo '<div class="plugin '.$directory.'">';
20 include_once($CFG->dirroot
.'/admin/report/'.$directory.'/mod.php'); // Fragment for listing