summaryrefslogtreecommitdiff
path: root/lib/plugins/admin.php
diff options
context:
space:
mode:
authorchris <chris@jalakai.co.uk>2006-04-10 01:38:41 +0200
committerchris <chris@jalakai.co.uk>2006-04-10 01:38:41 +0200
commite04f1f162ee7d5abb22d29834ecf410602759b95 (patch)
tree113aa47e9a7b53b3aac6a5095b387bf9e3f002b9 /lib/plugins/admin.php
parent8fda456959075c35de4fd883709873b131da2aa2 (diff)
downloadrpg-e04f1f162ee7d5abb22d29834ecf410602759b95.tar.gz
rpg-e04f1f162ee7d5abb22d29834ecf410602759b95.tar.bz2
Bug#680
Update default plugins to ensure they exit immediately if not called from within Dokuwiki darcs-hash:20060409233841-9b6ab-555e4fced756849a5d7b9de6e4aaaea24c6da3ae.gz
Diffstat (limited to 'lib/plugins/admin.php')
-rw-r--r--lib/plugins/admin.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/plugins/admin.php b/lib/plugins/admin.php
index 480fc07dd..7245a73eb 100644
--- a/lib/plugins/admin.php
+++ b/lib/plugins/admin.php
@@ -5,7 +5,9 @@
* @license GPL 2 (http://www.gnu.org/licenses/gpl.html)
* @author Christopher Smith <chris@jalakai.co.uk>
*/
-if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/');
+// must be run within Dokuwiki
+if(!defined('DOKU_INC')) die();
+
if(!defined('DOKU_PLUGIN')) define('DOKU_PLUGIN',DOKU_INC.'lib/plugins/');
/**