if (ENABLED_ASP) {
     unset($_SESSION['comes_from_view']);
     unset($_SESSION['comes_from_view_time']);
     unset($_SESSION['submitted_when']);
 }
 //Brachialer Spamschutz
 include '../inc/spamfilter.inc.php';
 $hpstart = substr($thesite, 0, 7);
 if ($hpstart != 'http://') {
     $thesite = 'http://' . $thesite;
 }
 if ($thesite == 'http://') {
     $thesite = '';
 }
 $show_link = $settings['default_link'];
 $commented_when = topics_localtime();
 if ($wb->is_authenticated() == true) {
     $commented_by = $wb->get_user_id();
 } else {
     $commented_by = '';
 }
 //Sending an Email:
 $admin_email = '';
 $query_topicauthor = $database->query("SELECT email FROM " . TABLE_PREFIX . "users WHERE user_id = '" . $topicauthornr . "'");
 if ($query_topicauthor->numRows() > 0) {
     $authorfetch = $query_topicauthor->fetchRow();
     $admin_email = $authorfetch['email'];
 }
 //Der spamfilter könnte $active verändert haben, deswegen $commentextra erst hier vergeben:
 $commentextra = '';
 if ($active == 0) {
// later we simply put the I::AddCss here
/*if((!function_exists('register_frontend_modfiles') || !defined('MOD_FRONTEND_CSS_REGISTERED')) &&  file_exists(WB_PATH .'/modules/'.$mod_dir.'/frontend.css')) {
   echo '<style type="text/css">';
   include(WB_PATH .'/modules/'.$mod_dir.'/frontend.css');
   echo "\n</style>\n";
} */
// Check if there is a start point defined
if (isset($_GET['p']) and is_numeric($_GET['p']) and $_GET['p'] >= 0) {
    $showoffset = $_GET['p'];
    if ($showoffset < 1) {
        $showoffset = 0;
    }
} else {
    $showoffset = 0;
}
$t = topics_localtime();
$makeeditlink = false;
$authoronly = false;
$fredit = $fredit_default;
if ($wb->is_authenticated()) {
    $user_id = $admin->get_user_id();
    $user_in_groups = $admin->get_groups_id();
    if ($authorsgroup > 0) {
        //Care about users
        if (in_array($authorsgroup, $user_in_groups)) {
            $authoronly = true;
            $fredit = 1;
        }
        //Ist nur Autor
    }
    if (in_array(1, $user_in_groups)) {