Noted that xml format can now handle images.
[moodle-linuxchix.git] / admin / report.php
blob2845053c17cbb5dc38db46f7ada14c897de1109b
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');
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
21 echo '</div>';
24 print_footer();