Ja ich meinte ja die automatische weiterleitung ich hatte mir das schon in anderen Dateien angesehen aber das funzt irgendwie net
aus der posting.php hab ich das genommen:
Code: Alles auswählen
$redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id";
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid($redirect, true));
exit;
und hier eingefügt:
if ($mode == 'down')
{
$sql = "UPDATE phpbb_topics SET down_status=1 WHERE topic_id=$topic_id";
if ( !$result = $db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Could not update topic status', '', __LINE__, __FILE__, $sql);
}
$message = 'Topic wurde markiert';
message_die(GENERAL_MESSAGE, $message);
$redirect = "viewtopic.$phpEx?" . POST_TOPIC_URL . "=$topic_id";
$header_location = ( @preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) ) ? 'Refresh: 0; URL=' : 'Location: ';
header($header_location . append_sid($redirect, true));
exit;
}
aber des funzt net es tut sich nichts
Grüße JLoop