mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fixed some bugs with banning and some code that wasnt updated when we changed the theme/template system
git-svn-id: file:///svn/phpbb/trunk@1218 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
7fd3e1943c
commit
46413f440e
3 changed files with 3 additions and 3 deletions
|
@ -359,7 +359,7 @@ else
|
||||||
$u_result = $db->sql_query($sql);
|
$u_result = $db->sql_query($sql);
|
||||||
$user_list = $db->sql_fetchrowset($u_result);
|
$user_list = $db->sql_fetchrowset($u_result);
|
||||||
|
|
||||||
$select_userlist = "";
|
$select_userlist = "<option value=\"0\">Select a Username</option>";
|
||||||
for($i = 0; $i < count($user_list); $i++)
|
for($i = 0; $i < count($user_list); $i++)
|
||||||
{
|
{
|
||||||
$select_userlist .= "<option value=\"" . $user_list[$i]['user_id'] . "\">" . $user_list[$i]['username'] . "</option>";
|
$select_userlist .= "<option value=\"" . $user_list[$i]['user_id'] . "\">" . $user_list[$i]['username'] . "</option>";
|
||||||
|
|
|
@ -1069,7 +1069,7 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
|
||||||
|
|
||||||
if( empty($theme) )
|
if( empty($theme) )
|
||||||
{
|
{
|
||||||
$theme = setuptheme($board_config['default_theme']);
|
$theme = setup_style($board_config['default_style']);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
|
@ -78,7 +78,7 @@ function session_begin($user_id, $user_ip, $page_id, $session_length, $login = 0
|
||||||
//
|
//
|
||||||
if($ban_info['ban_ip'] || $ban_info['ban_userid'])
|
if($ban_info['ban_ip'] || $ban_info['ban_userid'])
|
||||||
{
|
{
|
||||||
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '.'.$phpEx);
|
include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.'.$phpEx);
|
||||||
message_die(CRITICAL_MESSAGE, $lang['You_been_banned']);
|
message_die(CRITICAL_MESSAGE, $lang['You_been_banned']);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue