]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-15413 Merged prevention of direct access from 1.9
authormoodler <moodler>
Fri, 27 Jun 2008 03:35:22 +0000 (03:35 +0000)
committermoodler <moodler>
Fri, 27 Jun 2008 03:35:22 +0000 (03:35 +0000)
blog/blogpage.php
course/report/stats/report.php

index e7e9c9b85d41efa69769cf8709d2408bb0939318..baff9b6fb1b8425fd2ff270833de3e965139800c 100644 (file)
@@ -1,5 +1,9 @@
 <?php  // $Id$
 
+if (!defined('MOODLE_INTERNAL')) {
+    die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
+}
+
 /**
 * Definition of blog page type.
  */
index 1b7b3f1a62ab6194c43b3993c2d616fd53563f70..bd18a6db6e7bcbd94fa1426cc34e23bfdb1bc94d 100644 (file)
@@ -1,4 +1,8 @@
-<?php
+<?php // $Id$
+
+    if (!defined('MOODLE_INTERNAL')) {
+        die('Direct access to this script is forbidden.');    ///  It must be included from a Moodle page
+    }
 
     $courses = get_courses('all','c.shortname','c.id,c.shortname,c.fullname');
     $courseoptions = array();