MDL-22388 Added some checks to kill these scripts dead with an unequivocal notice unless included properly from a Moodle script.

This commit is contained in:
Martin Dougiamas
2010-05-13 01:40:36 +00:00
parent ae46b1f880
commit 03b8bc9bf3
32 changed files with 156 additions and 24 deletions
+5 -1
View 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
}
require_once($CFG->libdir.'/formslib.php');
class note_edit_form extends moodleform {
@@ -31,4 +35,4 @@ class note_edit_form extends moodleform {
$mform->setType('id', PARAM_INT);
}
}
?>
?>