Added security and consistent CSS

This commit is contained in:
moodler
2006-03-09 16:34:24 +00:00
parent be92c3c1a6
commit 17f829a765
2 changed files with 9 additions and 1 deletions
+4
View File
@@ -9,6 +9,10 @@
error("That's an invalid course id");
}
if (!isteacher($course->id)) {
error("You are not allowed to look at this page");
}
$strimport = get_string('import');
print_header($course->fullname.': '.$strimport, $course->fullname.': '.$strimport,
+5 -1
View File
@@ -9,6 +9,10 @@
error("That's an invalid course id");
}
if (!isteacher($course->id)) {
error("You are not allowed to look at this page");
}
$strreports = get_string('reports');
print_header($course->fullname.': '.$strreports, $course->fullname.': '.$strreports,
@@ -17,7 +21,7 @@
$directories = get_list_of_plugins('course/report');
foreach ($directories as $directory) {
echo '<div class="plugin">';
echo '<div class="plugin '.$directory.'">';
include_once($CFG->dirroot.'/course/report/'.$directory.'/mod.php'); // Fragment for listing
echo '</div>';
}