Permalink
Browse files

MDL-15413 Added some code to prevent direct calls on this script

  • Loading branch information...
1 parent 81f64bb commit 80957b76a8c14e73232adb84217c59acbe6ec0ab moodler committed Jun 27, 2008
Showing with 9 additions and 1 deletion.
  1. +4 −0 blog/blogpage.php
  2. +5 −1 course/report/stats/report.php
View
@@ -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.
*/
@@ -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();

0 comments on commit 80957b7

Please sign in to comment.