]> git.mjollnir.org Git - moodle.git/commitdiff
Direct access to this script is forbidden.
authorethem <ethem>
Fri, 28 Apr 2006 07:20:25 +0000 (07:20 +0000)
committerethem <ethem>
Fri, 28 Apr 2006 07:20:25 +0000 (07:20 +0000)
enrol/authorize/action.php

index 8c932fbf2ac43bb7e0846f94382304eec9fed245..80d8b525d4125ec496bddf78f5c04f58c93218b7 100644 (file)
@@ -1,11 +1,16 @@
 <?php //  $Id$
 
+if (!defined('MOODLE_INTERNAL')) {
+    die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
+}
+
 define('AN_APPROVED', '1');
 define('AN_DECLINED', '2');
-define('AN_ERROR', '3');
-define('AN_DELIM', '|');
-define('AN_ENCAP', '"');
-require_once $CFG->dirroot.'/enrol/authorize/const.php';
+define('AN_ERROR',    '3');
+define('AN_DELIM',    '|');
+define('AN_ENCAP',    '"');
+
+require_once('const.php');
 
 /**
  * Gets settlement date and time