$result = $db->query("UPDATE {$db->pre}user SET confirm = '{$cn}' WHERE id = '{$_GET['id']}' LIMIT 1", __LINE__, __FILE__);
        ok($lang->phrase('register_code_validated'), "log.php?action=login" . SID2URL_x);
    } else {
        error($lang->phrase('register_code_not_valid'), "log.php?action=login" . SID2URL_x);
    }
} else {
    ($code = $plugins->load('register_form_start')) ? eval($code) : null;
    if ($config['disableregistration'] == 1) {
        error($lang->phrase('register_disabled'));
    }
    if ($config['botgfxtest'] == 1) {
        include "classes/graphic/class.veriword.php";
        $vword = new VeriWord();
        $veriid = $vword->set_veriword($config['botgfxtest_text_verification']);
        if ($config['botgfxtest_text_verification'] == 1) {
            $textcode = $vword->output_word($veriid);
        }
    }
    $breadcrumb->Add($lang->phrase('register_title'));
    echo $tpl->parse("header");
    echo $tpl->parse("menu");
    $customfields = addprofile_customfields();
    $rules = $lang->get_words('rules');
    ($code = $plugins->load('register_form_prepared')) ? eval($code) : null;
    echo $tpl->parse("register/register");
    ($code = $plugins->load('register_form_end')) ? eval($code) : null;
}
$slog->updatelogged();
$zeitmessung = t2();
echo $tpl->parse("footer");
$phpdoc->Out();