mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ikawhero
committed
Mar 10, 2006
1 parent
73a60fc
commit eaad0cb
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); | ||
?> | ||
|