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 02:02:05 +00:00
parent f60d0786f7
commit bfebaf64d8
99 changed files with 415 additions and 23 deletions
@@ -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
}
require_once $CFG->libdir.'/formslib.php';
class database_export_form extends moodleform {