aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/config.php17
-rw-r--r--phpBB/includes/acp/acp_captcha.php6
2 files changed, 22 insertions, 1 deletions
diff --git a/phpBB/config.php b/phpBB/config.php
index e69de29bb2..111a64b53f 100644
--- a/phpBB/config.php
+++ b/phpBB/config.php
@@ -0,0 +1,17 @@
+<?php
+// phpBB 3.0.x auto-generated configuration file
+// Do not change anything in this file!
+$dbms = 'mysqli';
+$dbhost = '';
+$dbport = '';
+$dbname = '300';
+$dbuser = 'root';
+$dbpasswd = '';
+$table_prefix = 'phpbb_';
+$acm_type = 'file';
+$load_extensions = '';
+
+@define('PHPBB_INSTALLED', true);
+ @define('DEBUG', true);
+ @define('DEBUG_EXTRA', true);
+?> \ No newline at end of file
diff --git a/phpBB/includes/acp/acp_captcha.php b/phpBB/includes/acp/acp_captcha.php
index 3e363107f4..e61b8c2170 100644
--- a/phpBB/includes/acp/acp_captcha.php
+++ b/phpBB/includes/acp/acp_captcha.php
@@ -79,7 +79,11 @@ class acp_captcha
$captcha_vars = array_keys($captcha_vars);
foreach ($captcha_vars as $captcha_var)
{
- set_config($captcha_var, request_var($captcha_var, 0));
+ $value = request_var($captcha_var, 0);
+ if ($value >= 0)
+ {
+ set_config($captcha_var, $value);
+ }
}
trigger_error($user->lang['CONFIG_UPDATED'] . adm_back_link($this->u_action));
}