From eaad0cb61468d01b598d437492d76d9deefff0d5 Mon Sep 17 00:00:00 2001 From: ikawhero Date: Fri, 10 Mar 2006 07:46:24 +0000 Subject: [PATCH] Adding new pluggable reports --- admin/index.php | 2 +- admin/report.php | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 admin/report.php diff --git a/admin/index.php b/admin/index.php index 59f6110dd1..97a7992022 100644 --- a/admin/index.php +++ b/admin/index.php @@ -432,7 +432,7 @@ $table->data[] = array(''.get_string('stickyblocks','admin').'', '
'.get_string('adminhelpstickyblocks').'
'); if (!empty($CFG->enablestats)) { - $table->data[] = array(''.get_string('reports').'', + $table->data[] = array(''.get_string('reports').'', '
'.get_string('adminhelpreports').'
'); } $table->data[] = array(''.get_string('environment','admin').'', diff --git a/admin/report.php b/admin/report.php new file mode 100644 index 0000000000..2845053c17 --- /dev/null +++ b/admin/report.php @@ -0,0 +1,26 @@ +'.$stradmin.' -> '.$strreports); + + $directories = get_list_of_plugins('admin/report'); + + foreach ($directories as $directory) { + echo '
'; + include_once($CFG->dirroot.'/admin/report/'.$directory.'/mod.php'); // Fragment for listing + echo '
'; + } + + print_footer(); +?> + -- 2.39.5