mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
More fixes
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2600 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ec4c683a2d
commit
82b4ae200f
2 changed files with 6 additions and 8 deletions
|
@ -33,7 +33,7 @@ init_userprefs($userdata);
|
|||
// End session management
|
||||
//
|
||||
|
||||
$start = ( isset($HTTP_GET_VARS['start']) ) ? $HTTP_GET_VARS['start'] : 0;
|
||||
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
|
||||
|
||||
if(isset($HTTP_POST_VARS['order']))
|
||||
{
|
||||
|
@ -58,7 +58,7 @@ $select_sort_mode = '<select name="mode">';
|
|||
for($i = 0; $i < count($mode_types_text); $i++)
|
||||
{
|
||||
$selected = ( $mode == $mode_types[$i] ) ? ' selected="selected"' : '';
|
||||
$select_sort_mode .= "<option value=\"" . $mode_types[$i] . "\"$selected>" . $mode_types_text[$i] . "</option>";
|
||||
$select_sort_mode .= '<option value="' . $mode_types[$i] . '"' . $selected . '>' . $mode_types_text[$i] . '</option>';
|
||||
}
|
||||
$select_sort_mode .= '</select>';
|
||||
|
||||
|
|
|
@ -56,14 +56,12 @@ while( list($var, $param) = @each($params) )
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$refresh = $preview || $poll_add || $poll_edit || $poll_delete;
|
||||
|
||||
//
|
||||
// Set topic type
|
||||
//
|
||||
$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? $HTTP_POST_VARS['topictype'] : POST_NORMAL;
|
||||
$topic_type = ( !empty($HTTP_POST_VARS['topictype']) ) ? intval($HTTP_POST_VARS['topictype']) : POST_NORMAL;
|
||||
|
||||
//
|
||||
// If the mode is set to topic review then output
|
||||
|
@ -358,7 +356,7 @@ if ( !$is_auth[$is_auth_type] )
|
|||
//
|
||||
// Set toggles for various options
|
||||
//
|
||||
if( !$board_config['allow_html'] )
|
||||
if ( !$board_config['allow_html'] )
|
||||
{
|
||||
$html_on = 0;
|
||||
}
|
||||
|
@ -367,7 +365,7 @@ else
|
|||
$html_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_html']) ) ? 0 : TRUE ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? $board_config['allow_html'] : $userdata['user_allowhtml'] );
|
||||
}
|
||||
|
||||
if( !$board_config['allow_bbcode'] )
|
||||
if ( !$board_config['allow_bbcode'] )
|
||||
{
|
||||
$bbcode_on = 0;
|
||||
}
|
||||
|
@ -376,7 +374,7 @@ else
|
|||
$bbcode_on = ( $submit || $refresh ) ? ( ( !empty($HTTP_POST_VARS['disable_bbcode']) ) ? 0 : TRUE ) : ( ( $userdata['user_id'] == ANONYMOUS ) ? $board_config['allow_bbcode'] : $userdata['user_allowbbcode'] );
|
||||
}
|
||||
|
||||
if( !$board_config['allow_smilies'] )
|
||||
if ( !$board_config['allow_smilies'] )
|
||||
{
|
||||
$smilies_on = 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue