phpBB

Code Changes

File: includes/mcp/mcp_ban.php

  Unmodified   Added   Modified   Removed
Line 28Line 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 177Line 183
						'unban'			=> $ban)));
}
}

						'unban'			=> $ban)));
}
}

		}

// Ban length options
$ban_end_text = array(0 => $user->lang['PERMANENT'], 30 => $user->lang['30_MINS'], 60 => $user->lang['1_HOUR'], 360 => $user->lang['6_HOURS'], 1440 => $user->lang['1_DAY'], 10080 => $user->lang['7_DAYS'], 20160 => $user->lang['2_WEEKS'], 40320 => $user->lang['1_MONTH'], -1 => $user->lang['UNTIL'] . ' -> ');

$ban_end_options = '';
foreach ($ban_end_text as $length => $text)
{
$ban_end_options .= '<option value="' . $length . '">' . $text . '</option>';

 
		}

// Define language vars

		}

// Define language vars

Line 212Line 209
			break;
}


			break;
}


		acp_ban::display_ban_options($mode);


		display_ban_end_options();
display_ban_options($mode);


$template->assign_vars(array(
'L_TITLE' => $this->page_title,


$template->assign_vars(array(
'L_TITLE' => $this->page_title,

Line 263Line 261
		}
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)
{