Automatic installer.php lang files by installer_builder (20070202)
[moodle.git] / admin / report.php
blob3ba172466d4821ebf5bd9fb3191171703e969b24
1 <?php // $Id$
2 // Display all the reports available in admin/report
4 require_once('../config.php');
6 if (!isadmin()) {
7 error("You are not allowed to look at this page");
10 $stradmin = get_string('administration');
11 $strreports = get_string('reports');
12 $strmisc = get_string('miscellaneous');
14 print_header($strreports, $strreports,
15 '<a href="index.php">'.$stradmin.'</a> -> <a href="misc.php">'.$strmisc.'</a> ->'.
16 $strreports);
18 $directories = get_list_of_plugins('admin/report');
20 foreach ($directories as $directory) {
21 echo '<div class="plugin '.$directory.'">';
22 include_once($CFG->dirroot.'/admin/report/'.$directory.'/mod.php'); // Fragment for listing
23 echo '</div>';
26 print_footer();