$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;
}
	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;
}
$query_comments = $database->query("SELECT * FROM " . TABLE_PREFIX . "mod_" . $tablename . "_comments WHERE topic_id = '{$topic_id}'");
if ($query_comments->numRows() > 0) {
    $hascontent = 3;
}
$commenting = $admin->get_post_escaped('commenting');
$picture = $admin->get_post_escaped('picture');
$picture = $admin->get_post_escaped('picture');