mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 20:17:58 +02:00
ok, bugfixing phase #1 finished. There will be more bugfixes coming and those knowing CVS/php/mysql are encouraged to implement the fixes. ;)
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@5204 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@ -254,7 +254,6 @@ $template->assign_vars(array(
|
||||
"ACTIVATION_ADMIN_CHECKED" => $activation_admin,
|
||||
"CONFIRM_ENABLE" => $confirm_yes,
|
||||
"CONFIRM_DISABLE" => $confirm_no,
|
||||
"ACTIVATION_NONE_CHECKED" => $activation_none,
|
||||
"BOARD_EMAIL_FORM_ENABLE" => $board_email_form_yes,
|
||||
"BOARD_EMAIL_FORM_DISABLE" => $board_email_form_no,
|
||||
"MAX_POLL_OPTIONS" => $new['max_poll_options'],
|
||||
|
@ -45,7 +45,7 @@ if( isset($HTTP_POST_VARS['add_name']) )
|
||||
|
||||
if ($disallowed_user == '')
|
||||
{
|
||||
message_die(MESSAGE, $lang['Fields_empty']);
|
||||
message_die(GENERAL_MESSAGE, $lang['Fields_empty']);
|
||||
}
|
||||
if( !validate_username($disallowed_user) )
|
||||
{
|
||||
|
@ -410,7 +410,7 @@ else if ( $mode != "" )
|
||||
// If no code was entered complain ...
|
||||
if ($smile_code == '' || $smile_url == '')
|
||||
{
|
||||
message_die(MESSAGE, $lang['Fields_empty']);
|
||||
message_die(GENERAL_MESSAGE, $lang['Fields_empty']);
|
||||
}
|
||||
|
||||
//
|
||||
@ -454,7 +454,7 @@ else if ( $mode != "" )
|
||||
// If no code was entered complain ...
|
||||
if ($smile_code == '' || $smile_url == '')
|
||||
{
|
||||
message_die(MESSAGE, $lang['Fields_empty']);
|
||||
message_die(GENERAL_MESSAGE, $lang['Fields_empty']);
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -251,9 +251,10 @@ if ( isset($HTTP_POST_VARS['submit']) && ( ( $mode == 'user' && $user_id ) || (
|
||||
}
|
||||
}
|
||||
|
||||
$sql = "SELECT *
|
||||
FROM " . FORUMS_TABLE . " f
|
||||
ORDER BY forum_order";
|
||||
$sql = 'SELECT f.*
|
||||
FROM ' . FORUMS_TABLE . ' f, ' . CATEGORIES_TABLE . ' c
|
||||
WHERE f.cat_id = c.cat_id
|
||||
ORDER BY c.cat_order, f.forum_order';
|
||||
if ( !($result = $db->sql_query($sql)) )
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Couldn't obtain forum information", "", __LINE__, __FILE__, $sql);
|
||||
@ -831,9 +832,9 @@ else if ( ( $mode == 'user' && ( isset($HTTP_POST_VARS['username']) || $user_id
|
||||
}
|
||||
}
|
||||
|
||||
$t_usergroup_list = $t_pending_list = '';
|
||||
if( count($name) )
|
||||
{
|
||||
$t_usergroup_list = $t_pending_list = '';
|
||||
for($i = 0; $i < count($ug_info); $i++)
|
||||
{
|
||||
$ug = ( $mode == 'user' ) ? 'group&' . POST_GROUPS_URL : 'user&' . POST_USERS_URL;
|
||||
@ -848,10 +849,9 @@ else if ( ( $mode == 'user' && ( isset($HTTP_POST_VARS['username']) || $user_id
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$t_usergroup_list = $lang['None'];
|
||||
}
|
||||
|
||||
$t_usergroup_list = ($t_usergroup_list == '') ? $lang['None'] : $t_usergroup_list;
|
||||
$t_pending_list = ($t_pending_list == '') ? $lang['None'] : $t_pending_list;
|
||||
|
||||
$s_column_span = 2; // Two columns always present
|
||||
if( !$adv )
|
||||
|
@ -25,6 +25,8 @@ if ( !defined('IN_PHPBB') )
|
||||
die("Hacking attempt");
|
||||
}
|
||||
|
||||
global $do_gzip_compress;
|
||||
|
||||
//
|
||||
// Show the overall footer.
|
||||
//
|
||||
|
Reference in New Issue
Block a user