summaryrefslogtreecommitdiff
path: root/inc/auth/punbb.class.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-03-03 22:44:59 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-03-03 22:44:59 +0100
commite55eb89cc5500e2b0552cf2f97734300e358894f (patch)
tree05758d32116142c96a05e976066975fc87d66678 /inc/auth/punbb.class.php
parentb7b9e2f23c056d1778b8aaa689ac65e1c61884b4 (diff)
downloadrpg-e55eb89cc5500e2b0552cf2f97734300e358894f.tar.gz
rpg-e55eb89cc5500e2b0552cf2f97734300e358894f.tar.bz2
punbb backend dies when magic quotes enabled
darcs-hash:20060303214459-7ad00-17f399257acafed5914eeb727b45b2fa984f00e8.gz
Diffstat (limited to 'inc/auth/punbb.class.php')
-rw-r--r--inc/auth/punbb.class.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/auth/punbb.class.php b/inc/auth/punbb.class.php
index 9a380728a..71959910f 100644
--- a/inc/auth/punbb.class.php
+++ b/inc/auth/punbb.class.php
@@ -9,6 +9,13 @@
*/
if(!defined('PUN_ROOT')) define('PUN_ROOT', DOKU_INC.'../forum/');
+if(get_magic_quotes_gpc()){
+ nice_die('Sorry the punbb auth backend requires the PHP option
+ <a href="http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc">magic_quotes_gpc</a>
+ to be disabled for proper operation. Either setup your PHP install accordingly or
+ choose a different auth backend.');
+}
+
require_once PUN_ROOT.'include/common.php';
require_once DOKU_INC.'inc/auth/mysql.class.php';