Merged new MOODLE_INTERNAL constant from stable, used to prevent

direct access to some scripts
This commit is contained in:
moodler 2004-12-12 04:33:13 +00:00
parent 4989c4172a
commit 6b94a807d2
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,5 @@
<?php defined('MOODLE_INTERNAL') or die('Direct access to this script is forbidden.'); ?>
<script language="JavaScript" type="text/javascript"
src="<?php echo "$CFG->wwwroot/lib/overlib.js" ?>"></script>

View File

@ -37,6 +37,12 @@
*/
/// CONSTANTS /////////////////////////////////////////////////////////////
/**
* Used by some scripts to check they are being called by Moodle
*/
define('MOODLE_INTERNAL', true);
/**
* No groups used?
*/