aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_inactive.php
diff options
context:
space:
mode:
authorTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-14 10:14:15 +0200
committerTristan Darricau <tristan.darricau@sensiolabs.com>2015-10-14 10:17:04 +0200
commite0fb680dbb46f17a48071745c72b0282aa3a1d93 (patch)
tree9a05fbcec5a92950fd326c351aa2e47bbab32c6f /phpBB/includes/acp/acp_inactive.php
parent1d6e1732597fca176353e674c72b2543c77273f3 (diff)
parent657216475468051464b25e12160f1749a71c1cf9 (diff)
downloadforums-e0fb680dbb46f17a48071745c72b0282aa3a1d93.tar
forums-e0fb680dbb46f17a48071745c72b0282aa3a1d93.tar.gz
forums-e0fb680dbb46f17a48071745c72b0282aa3a1d93.tar.bz2
forums-e0fb680dbb46f17a48071745c72b0282aa3a1d93.tar.xz
forums-e0fb680dbb46f17a48071745c72b0282aa3a1d93.zip
Merge branch '3.1.x'
* 3.1.x: [ticket/10572] Unguarded includes in acp files
Diffstat (limited to 'phpBB/includes/acp/acp_inactive.php')
-rw-r--r--phpBB/includes/acp/acp_inactive.php15
1 files changed, 12 insertions, 3 deletions
diff --git a/phpBB/includes/acp/acp_inactive.php b/phpBB/includes/acp/acp_inactive.php
index df445394db..8c021560a0 100644
--- a/phpBB/includes/acp/acp_inactive.php
+++ b/phpBB/includes/acp/acp_inactive.php
@@ -34,7 +34,10 @@ class acp_inactive
global $config, $db, $user, $auth, $template, $phpbb_container, $phpbb_log, $request;
global $phpbb_root_path, $phpbb_admin_path, $phpEx, $table_prefix;
- include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
+ if (!function_exists('user_active_flip'))
+ {
+ include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
+ }
$user->add_lang('memberlist');
@@ -111,7 +114,10 @@ class acp_inactive
if ($config['require_activation'] == USER_ACTIVATION_ADMIN && !empty($inactive_users))
{
- include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
+ if (!class_exists('messenger'))
+ {
+ include($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
+ }
$messenger = new messenger(false);
@@ -200,7 +206,10 @@ class acp_inactive
if ($row = $db->sql_fetchrow($result))
{
// Send the messages
- include_once($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
+ if (!class_exists('messenger'))
+ {
+ include($phpbb_root_path . 'includes/functions_messenger.' . $phpEx);
+ }
$messenger = new messenger();
$usernames = $user_ids = array();