Skip to content
Browse files

Locallib.php can be only used by index.php.

  • Loading branch information...
1 parent cb845f3 commit 7dcf558cde760f2e433f2968b4d46a9507050bb7 ethem committed Apr 24, 2006
Showing with 3 additions and 0 deletions.
  1. +1 −0 enrol/authorize/index.php
  2. +2 −0 enrol/authorize/locallib.php
View
1 enrol/authorize/index.php
@@ -2,6 +2,7 @@
/// Load libraries
require_once '../../config.php';
+ define('USE_AN_LOCALLIB', true);
require_once 'locallib.php';
/// Get site
View
2 enrol/authorize/locallib.php
@@ -1,5 +1,7 @@
<?PHP // $Id$
+defined('USE_AN_LOCALLIB') or die('Locallib.php can be only used by index.php');
+
require_once '../../config.php';
require_once $CFG->dirroot.'/enrol/authorize/const.php';
require_once $CFG->dirroot.'/enrol/authorize/action.php';

0 comments on commit 7dcf558

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