";
echo "Thread verschieben
";
if (is_mod_of($username,$file) != 1){
if (!is_admin($username)) {
echo "
Sie haben keine Berechtigung zur Administration.
\n";
echo "";
footer_show("footer.inc.php");
exit;
}
}
if (!$wohin) {
echo "
Wohin soll der Thread verschoben werden?
\n";
echo "";
footer_show("footer.inc.php");
exit;
}
$poster = get_thread_poster ($thread);
echo "Verschiebe Thread nach " . get_board_title($wohin) ."...
";
$new_file = explode(".",$wohin);
$new_file = $new_file[0];
$file = explode(".",$thread);
$file = $file[0];
$new_thread = explode(".",$thread);
$new_thread = $new_thread[1];
$new_thread = $new_file . "." . $new_thread . ".dat";
$ok = @rename($daten_pfad . "/" . $thread, $daten_pfad . "/" . $new_thread);
if ($ok == 1) {
echo "Aktion erfolgreich abgeschlossen.";
remove_threadfromboard($file,$thread);
add_thread2board($new_file,$new_thread);
add_thread2last($new_thread,1);
aktuelle_zeit_board($new_file,$poster,$new_thread);
}
else
{
echo "
Thread konnte nicht verschoben werden.
\n";
echo "";
footer_show("footer.inc.php");
exit;
}
echo "";
footer_show("footer.inc.php");
exit;
?>