aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/cache.php7
-rw-r--r--phpBB/includes/functions.php1
2 files changed, 2 insertions, 6 deletions
diff --git a/phpBB/includes/cache.php b/phpBB/includes/cache.php
index 5198abdc3c..31b8b73e10 100644
--- a/phpBB/includes/cache.php
+++ b/phpBB/includes/cache.php
@@ -73,12 +73,7 @@ class cache extends acm
*/
function obtain_word_list()
{
- global $config, $user, $db;
-
- if (!$user->optionget('viewcensors') && $config['allow_nocensors'])
- {
- return array();
- }
+ global $db;
if (($censors = $this->get('_word_censors')) === false)
{
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 8620134311..6f1d5964f5 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -2837,6 +2837,7 @@ function phpbb_checkdnsrr($host, $type = '')
return NULL;
}
+ // @exec('nslookup -retry=1 -timout=1 -type=' . escapeshellarg($type) . ' ' . escapeshellarg($host), $output);
@exec('nslookup -type=' . escapeshellarg($type) . ' ' . escapeshellarg($host), $output);
// If output is empty, the nslookup failed