File: includes/mcp/mcp_ban.php
Unmodified
Added
Modified
Removed
Line 28 | Line 28 |
---|
global $db, $user, $auth, $template, $request, $phpbb_dispatcher; global $phpbb_root_path, $phpEx;
|
global $db, $user, $auth, $template, $request, $phpbb_dispatcher; global $phpbb_root_path, $phpEx;
|
| if (!function_exists('user_ban')) {
|
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
|
| }
|
// Include the admin banning interface...
|
// Include the admin banning interface...
|
| if (!class_exists('acp_ban')) {
|
include($phpbb_root_path . 'includes/acp/acp_ban.' . $phpEx);
|
include($phpbb_root_path . 'includes/acp/acp_ban.' . $phpEx);
|
| }
|
$bansubmit = $request->is_set_post('bansubmit'); $unbansubmit = $request->is_set_post('unbansubmit');
| $bansubmit = $request->is_set_post('bansubmit'); $unbansubmit = $request->is_set_post('unbansubmit');
|
Line 263 | Line 269 |
---|
} else if ($post_id) {
|
} else if ($post_id) {
|
$post_info = phpbb_get_post_data($post_id, 'm_ban');
| $post_info = phpbb_get_post_data(array($post_id), 'm_ban');
|
|
|
if (sizeof($post_info) && !empty($post_info[$post_id]))
| if (count($post_info) && !empty($post_info[$post_id]))
|
{ switch ($mode) {
| { switch ($mode) {
|