$template->replace('FULLPAGE_HEADER', '{LANG_EDIT}: ' . $w_title);
 } else {
     $template->replace('META_TITLE', '{LANG_EDIT}: {LANG_CREATE_NEW}');
     $template->replace('FULLPAGE_HEADER', '{LANG_EDIT}: {LANG_CREATE_NEW}');
 }
 if (!empty($_POST['preview'])) {
     $pre_content = $_POST['text'] . '<br /><br />{FULLPAGE_TEXT}';
     $template->replace_wiki('FULLPAGE_TEXT', $pre_content);
     $w_text = $_POST['text'];
     $w_title = $_POST['title'];
 }
 if (!empty($_POST['safe'])) {
     //Ist leer
     if ($id == 0) {
         if ($_POST['title'] != "") {
             $link_id = $wiki->create_article($_POST['title'], $_POST['text'], $language, $user->get_id($_SESSION['nick']));
             $w_title = $_POST['title'];
             $url = '/' . $language . '/wiki/' . $link_id . '-' . cleanurl($w_title) . '.htm';
             header("Location: {$url}");
         } else {
             $pre_content = '<em>{LANG_FILLIN}</em><br /><br />{FULLPAGE_TEXT}';
             $template->replace_wiki('FULLPAGE_TEXT', $pre_content);
         }
     } else {
         $wiki->set_id_language($id, $language);
         $w_text = $wiki->get_text();
         if ($_POST['text'] != $w_text) {
             $wiki->update_article($id, $_POST['text'], $language, $user->get_id($_SESSION['nick']));
         }
         $link_id = $id;
         $url = '/' . $language . '/wiki/' . $link_id . '-' . cleanurl($w_title) . '.htm';