]> git.mjollnir.org Git - moodle.git/commitdiff
No direct inclusion
authormoodler <moodler>
Thu, 9 Mar 2006 07:41:18 +0000 (07:41 +0000)
committermoodler <moodler>
Thu, 9 Mar 2006 07:41:18 +0000 (07:41 +0000)
course/report/stats/mod.php

index 264e756f39a4746e7a495af7380c6726813334d3..7680376a63e3972a1af7726b21918a271e09ef71 100644 (file)
@@ -1,5 +1,9 @@
 <?php
 
+    if (!defined('MOODLE_INTERNAL')) {
+        die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
+    }
+
     if (!empty($CFG->enablestats)) {
         echo '<a href="'.$CFG->wwwroot.'/course/report/stats/index.php?course='.$course->id.'">'.get_string('stats').'</a>';
     }