mirror of
https://github.com/moodle/moodle.git
synced 2025-05-03 14:58:42 +02:00
Merged new MOODLE_INTERNAL constant from stable, used to prevent
direct access to some scripts
This commit is contained in:
parent
4989c4172a
commit
6b94a807d2
@ -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>
|
||||
|
@ -37,6 +37,12 @@
|
||||
*/
|
||||
/// CONSTANTS /////////////////////////////////////////////////////////////
|
||||
|
||||
/**
|
||||
* Used by some scripts to check they are being called by Moodle
|
||||
*/
|
||||
define('MOODLE_INTERNAL', true);
|
||||
|
||||
|
||||
/**
|
||||
* No groups used?
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user