]> git.mjollnir.org Git - moodle.git/commitdiff
Log reporting. (SE)
authormoodler <moodler>
Wed, 15 Mar 2006 08:07:14 +0000 (08:07 +0000)
committermoodler <moodler>
Wed, 15 Mar 2006 08:07:14 +0000 (08:07 +0000)
admin/report/log/mod.php [new file with mode: 0644]

diff --git a/admin/report/log/mod.php b/admin/report/log/mod.php
new file mode 100644 (file)
index 0000000..ea990b0
--- /dev/null
@@ -0,0 +1,23 @@
+<?php
+
+    if (!defined('MOODLE_INTERNAL')) {
+        die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
+    }
+
+    require_once($CFG->dirroot.'/course/lib.php');
+    require_once($CFG->dirroot.'/course/report/log/lib.php');
+
+    $course = get_site();
+
+    print_heading(get_string('chooselogs') .':');
+
+    print_log_selector_form($course); 
+
+    echo '<br />';
+    print_heading(get_string('chooselivelogs') .':');
+
+    echo '<center><h3>';
+    link_to_popup_window('/course/report/log/live.php?id='. $course->id,'livelog', get_string('livelogs'), 500, 800);
+    echo '</h3></center>';
+
+?>