Permalink
Browse files

Adding new pluggable reports

  • Loading branch information...
ikawhero
ikawhero committed Mar 10, 2006
1 parent 73a60fc commit eaad0cb61468d01b598d437492d76d9deefff0d5
Showing with 27 additions and 1 deletion.
  1. +1 −1 admin/index.php
  2. +26 −0 admin/report.php
View
@@ -432,7 +432,7 @@
$table->data[] = array('<strong><a href="stickyblocks.php">'.get_string('stickyblocks','admin').'</a></strong>',
'<div class="explanation">'.get_string('adminhelpstickyblocks').'</div>');
if (!empty($CFG->enablestats)) {
$table->data[] = array('<strong><a href="reports.php">'.get_string('reports').'</a></strong>',
$table->data[] = array('<strong><a href="report.php">'.get_string('reports').'</a></strong>',
'<div class="explanation">'.get_string('adminhelpreports').'</div>');
}
$table->data[] = array('<strong><a href="environment.php">'.get_string('environment','admin').'</a></strong>',
View
@@ -0,0 +1,26 @@
<?php // $Id$
// Display all the reports available in admin/report
require_once('../config.php');
if (!isadmin()) {
error("You are not allowed to look at this page");
}
$stradmin = get_string('administration');
$strreports = get_string('reports');
print_header($strreports, $strreports,
'<a href="index.php">'.$stradmin.'</a> -> '.$strreports);
$directories = get_list_of_plugins('admin/report');
foreach ($directories as $directory) {
echo '<div class="plugin '.$directory.'">';
include_once($CFG->dirroot.'/admin/report/'.$directory.'/mod.php'); // Fragment for listing
echo '</div>';
}
print_footer();
?>

0 comments on commit eaad0cb

Please sign in to comment.