} else {
        $admin->print_error($database->get_error());
        die('!$post');
    }
}
if (!($post = $query_post->fetchRow())) {
    die('<h1>Nix mehr da</h1>');
}
$post_id = $post['post_id'];
$title = $post['title'];
$groups_id = ',' . $post['group_id'] . ',';
$position = $post['position'];
$content_short = '<!-- copy of news post ' . $post_id . ' -->' . $post['content_short'];
$content_long = $post['content_long'];
//$short_description = $post['content_short']; //Wird nicht übertragen
$description = makemetadescription(strip_tags($content_short . ' ' . $title));
$keywords = makemetakeywords(strtolower(strip_tags($title . ' ' . $content_short)));
$hascontent = 1;
if (strlen($content_long) < 7) {
    $hascontent = 0;
}
if (strlen($content_long) > 400) {
    $hascontent = 2;
}
$content_short = addslashes($content_short);
$content_long = addslashes($content_long);
$commenting_topics = 2;
//verzögert
$commenting = $post['commenting'];
if ($commenting == 'none') {
    $commenting_topics = -1;
New in Topics 2.8: groups_id */
$groups_id = '';
if (isset($_POST['groups_id'])) {
    $groups_id = ',' . implode(',', $_POST['groups_id']) . ',';
}
/*if ($extrafield_1_name = "Homepage") {
	$hpstart = substr ($txtr1, 0, 7);
	if ($hpstart  != 'http://') { $txtr1 = 'http://'.$txtr1; }
	if ($txtr1 == 'http://') {$txtr1  = '';}
}*/
$description = $admin->get_post_escaped('description');
if (substr($description, 0, 1) == ' ') {
    $description = '';
}
if ($description == '') {
    $description = makemetadescription(strip_tags($short_description . ' ' . $short . ' ' . $title));
}
$keywords = $admin->get_post_escaped('keywords');
if (substr($keywords, 0, 1) == ' ') {
    $keywords = '';
}
if ($keywords == '') {
    $keywords = makemetakeywords(strtolower(strip_tags($title . ' ' . $short_description . ' ' . $short)));
}
$hascontent = 1;
if (strlen($long . $extra) < 7) {
    $hascontent = 0;
}
if (strlen($long . $extra) > 400) {
    $hascontent = 2;
}