Skip to content
Browse files

Direct access to this script is forbidden.

  • Loading branch information...
1 parent 993763b commit 0168503ab2aa1c25464d1d46e219458d15a59dda ethem committed Apr 28, 2006
Showing with 9 additions and 4 deletions.
  1. +9 −4 enrol/authorize/action.php
View
13 enrol/authorize/action.php
@@ -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

0 comments on commit 0168503

Please sign in to comment.
Something went wrong with that request. Please try again.