MDL-15413 Added some code to prevent this script being run on it's own

This commit is contained in:
moodler
2008-06-27 03:29:08 +00:00
parent 5104726b9f
commit 6e6f33e6f2
+5 -1
View 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
}
$courses = get_courses('all','c.shortname','c.id,c.shortname,c.fullname');
$courseoptions = array();
@@ -139,4 +143,4 @@
print_table($table);
}
?>
?>