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

This commit is contained in:
ethem 2006-04-24 17:15:13 +00:00
parent cb845f37ae
commit 7dcf558cde
2 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,7 @@
/// Load libraries
require_once '../../config.php';
define('USE_AN_LOCALLIB', true);
require_once 'locallib.php';
/// Get site

View 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';