Verfasst: 15.04.2003 19:25
Link zu der fehlerhaften Seite bitte 

phpBB.de - Die deutsche phpBB-Community
https://www.phpbb.de/community/
Code: Alles auswählen
//
// Sorting Search Results - BEGIN
//
if ( $search_id )
{
$hidden_fields .= '<input type="hidden" name="mode" value="' . ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'] . '" />';
$s_action = append_sid("search.$phpEx?search_id=$search_id");
$base_url = "search.$phpEx?search_id=$search_id&sort_by=$sort_by&sort_dir=$sort_dir";
}
else
{
$hidden_fields .= '<input type="hidden" name="search_id" value="' . $search_id . '" />';
$s_action = append_sid("search.$phpEx?mode=results");
$base_url = "search.$phpEx?search_id=$search_id";
}
$hidden_fields .= '<input type="hidden" name="search_keywords" value="' . ( isset($HTTP_GET_VARS['search_keywords']) ) ? $HTTP_GET_VARS['search_keywords'] : $HTTP_POST_VARS['search_keywords'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_author" value="' . ( isset($HTTP_GET_VARS['search_author']) ) ? $HTTP_GET_VARS['search_author'] : $HTTP_POST_VARS['search_author'] . '" />';
$hidden_fields .= '<input type="hidden" name="show_results" value="' . ( isset($HTTP_GET_VARS['show_results']) ) ? $HTTP_GET_VARS['show_results'] : $HTTP_POST_VARS['show_results'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_terms" value="' . ( isset($HTTP_GET_VARS['search_terms']) ) ? $HTTP_GET_VARS['search_terms'] : $HTTP_POST_VARS['search_terms'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_fields" value="' . ( isset($HTTP_GET_VARS['search_fields']) ) ? $HTTP_GET_VARS['search_fields'] : $HTTP_POST_VARS['search_fields'] . '" />';
$hidden_fields .= '<input type="hidden" name="return_chars" value="' . ( isset($HTTP_GET_VARS['return_chars']) ) ? $HTTP_GET_VARS['return_chars'] : $HTTP_POST_VARS['return_chars'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_cat" value="' . ( isset($HTTP_GET_VARS['search_cat']) ) ? $HTTP_GET_VARS['search_cat'] : $HTTP_POST_VARS['search_cat'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_forum" value="' . ( isset($HTTP_GET_VARS['search_forum']) ) ? $HTTP_GET_VARS['search_forum'] : $HTTP_POST_VARS['search_forum'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_time" value="' . ( isset($HTTP_GET_VARS['search_time']) ) ? $HTTP_GET_VARS['search_time'] : $HTTP_POST_VARS['search_time'] . '" />';
//
// Sorting Search Results - END
//
Code: Alles auswählen
<form action="{S_SORT_ACTION}" method="POST"><td align="right" nowrap="nowrap"><span class="genmed">{L_SORT_BY} <select class="post" name="sort_by">{S_SORT_OPTIONS}</select>&{L_ORDER} <select class="post" name="sort_dir">{S_SORT_DIR}</select>&{S_HIDDEN_FIELDS}<input type="submit" name="submit" value="{L_SUBMIT}" class="liteoption" /></span></td></form>
Code: Alles auswählen
//
// Sorting Search Results - BEGIN
//
if ( $search_id )
{
$hidden_fields .= '<input type="hidden" name="mode" value="' . ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'] . '" />';
$s_action = append_sid("search.$phpEx?search_id=$search_id");
$base_url = "search.$phpEx?search_id=$search_id&sort_by=$sort_by&sort_dir=$sort_dir";
}
else
{
$hidden_fields .= '<input type="hidden" name="search_id" value="' . $search_id . '" />';
$s_action = append_sid("search.$phpEx?mode=results");
$base_url = "search.$phpEx?search_id=$search_id";
}
$hidden_fields .= '<input type="hidden" name="search_keywords" value="' . ( isset($HTTP_GET_VARS['search_keywords']) ) ? $HTTP_GET_VARS['search_keywords'] : $HTTP_POST_VARS['search_keywords'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_author" value="' . ( isset($HTTP_GET_VARS['search_author']) ) ? $HTTP_GET_VARS['search_author'] : $HTTP_POST_VARS['search_author'] . '" />';
$hidden_fields .= '<input type="hidden" name="show_results" value="' . ( isset($HTTP_GET_VARS['show_results']) ) ? $HTTP_GET_VARS['show_results'] : $HTTP_POST_VARS['show_results'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_terms" value="' . ( isset($HTTP_GET_VARS['search_terms']) ) ? $HTTP_GET_VARS['search_terms'] : $HTTP_POST_VARS['search_terms'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_fields" value="' . ( isset($HTTP_GET_VARS['search_fields']) ) ? $HTTP_GET_VARS['search_fields'] : $HTTP_POST_VARS['search_fields'] . '" />';
$hidden_fields .= '<input type="hidden" name="return_chars" value="' . ( isset($HTTP_GET_VARS['return_chars']) ) ? $HTTP_GET_VARS['return_chars'] : $HTTP_POST_VARS['return_chars'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_cat" value="' . ( isset($HTTP_GET_VARS['search_cat']) ) ? $HTTP_GET_VARS['search_cat'] : $HTTP_POST_VARS['search_cat'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_forum" value="' . ( isset($HTTP_GET_VARS['search_forum']) ) ? $HTTP_GET_VARS['search_forum'] : $HTTP_POST_VARS['search_forum'] . '" />';
$hidden_fields .= '<input type="hidden" name="search_time" value="' . ( isset($HTTP_GET_VARS['search_time']) ) ? $HTTP_GET_VARS['search_time'] : $HTTP_POST_VARS['search_time'] . '" />';
//
// Sorting Search Results - END
//
Code: Alles auswählen
//
// Sorting Search Results - BEGIN
//
if ( $search_id )
{
if (isset($HTTP_GET_VARS['mode'])) {$temp = $HTTP_GET_VARS['mode'];} else {$temp = $HTTP_POST_VARS['mode'];}
$hidden_fields .= '<input type="hidden" name="mode" value="' . $temp . '" />';
$temp = '';
$s_action = append_sid("search.$phpEx?search_id=$search_id");
$base_url = "search.$phpEx?search_id=$search_id&sort_by=$sort_by&sort_dir=$sort_dir";
}
else
{
$hidden_fields .= '<input type="hidden" name="search_id" value="' . $search_id . '" />';
$s_action = append_sid("search.$phpEx?mode=results");
$base_url = "search.$phpEx?search_id=$search_id";
}
if (isset($HTTP_GET_VARS['search_keywords'])) {$temp = $HTTP_GET_VARS['search_keywords'];} else {$temp = $HTTP_POST_VARS['search_keywords'];}
$hidden_fields .= '<input type="hidden" name="search_keywords" value="' . $temp . '" />';
$temp = '';
if (isset($HTTP_GET_VARS['search_author'])) {$temp = $HTTP_GET_VARS['search_author'];} else {$temp = $HTTP_POST_VARS['search_author'];}
$hidden_fields .= '<input type="hidden" name="search_author" value="' . $temp . '" />';
$temp = '';
if (isset($HTTP_GET_VARS['show_results'])) {$temp = $HTTP_GET_VARS['show_results'];} else {$temp = $HTTP_POST_VARS['show_results'];}
$hidden_fields .= '<input type="hidden" name="show_results" value="' . $temp . '" />';
$temp = '';
if (isset($HTTP_GET_VARS['search_terms'])) {$temp = $HTTP_GET_VARS['search_terms'];} else {$temp = $HTTP_POST_VARS['search_terms'];}
$hidden_fields .= '<input type="hidden" name="search_terms" value="' . $temp . '" />';
$temp = '';
if (isset($HTTP_GET_VARS['search_fields'])) {$temp = $HTTP_GET_VARS['search_fields'];} else {$temp = $HTTP_POST_VARS['search_fields'];}
$hidden_fields .= '<input type="hidden" name="search_fields" value="' . $temp . '" />';
$temp = '';
if (isset($HTTP_GET_VARS['return_chars'])) {$temp = $HTTP_GET_VARS['return_chars'];} else {$temp = $HTTP_POST_VARS['return_chars'];}
$hidden_fields .= '<input type="hidden" name="return_chars" value="' . $temp . '" />';
$temp = '';
if (isset($HTTP_GET_VARS['search_cat'])) {$temp = $HTTP_GET_VARS['search_cat'];} else {$temp = $HTTP_POST_VARS['search_cat'];}
$hidden_fields .= '<input type="hidden" name="search_cat" value="' . $temp . '" />';
$temp = '';
if (isset($HTTP_GET_VARS['search_forum'])) {$temp = $HTTP_GET_VARS['search_forum'];} else {$temp = $HTTP_POST_VARS['search_forum'];}
$hidden_fields .= '<input type="hidden" name="search_forum" value="' . $temp . '" />';
$temp = '';
if (isset($HTTP_GET_VARS['search_time'])) {$temp = $HTTP_GET_VARS['search_time'];} else {$temp = $HTTP_POST_VARS['search_time'];}
$hidden_fields .= '<input type="hidden" name="search_time" value="' . $temp . '" />';
//
// Sorting Search Results - END
//
Code: Alles auswählen
if ( $search_id )
Code: Alles auswählen
if ( !$search_id )
Code: Alles auswählen
$hidden_fields .= '<input type="hidden" name="mode" value="' . ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'] . '" />';
Code: Alles auswählen
//$hidden_fields .= '<input type="hidden" name="mode" value="' . ( isset($HTTP_GET_VARS['mode']) ) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'] . '" />';