]> git.mjollnir.org Git - moodle.git/commitdiff
Locallib.php can be only used by index.php.
authorethem <ethem>
Mon, 24 Apr 2006 17:15:13 +0000 (17:15 +0000)
committerethem <ethem>
Mon, 24 Apr 2006 17:15:13 +0000 (17:15 +0000)
enrol/authorize/index.php
enrol/authorize/locallib.php

index 857182d1c7184f316ceb4a1a5c8481586b5ed029..0ce5f0ae7d2c00f7cfae718d321ab27741e4a376 100644 (file)
@@ -2,6 +2,7 @@
 
 /// Load libraries
     require_once '../../config.php';
+    define('USE_AN_LOCALLIB', true);
     require_once 'locallib.php';
 
 /// Get site
index a596125cf80473194ff464b7ace0fc2b52165410..163850042e29170901bee963e990f972b6f0c276 100644 (file)
@@ -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';