Skip to content

Commit

Permalink
Merged new MOODLE_INTERNAL constant from stable, used to prevent
Browse files Browse the repository at this point in the history
direct access to some scripts
  • Loading branch information
moodler committed Dec 12, 2004
1 parent 4989c41 commit 6b94a80
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/javascript.php
@@ -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>
Expand Down
6 changes: 6 additions & 0 deletions lib/moodlelib.php
Expand Up @@ -37,6 +37,12 @@
*/
/// CONSTANTS /////////////////////////////////////////////////////////////

/**
* Used by some scripts to check they are being called by Moodle
*/
define('MOODLE_INTERNAL', true);


/**
* No groups used?
*/
Expand Down

0 comments on commit 6b94a80

Please sign in to comment.