die('you are not login'); } $template->replace('LOGIN', '{LANG_LOGOUT}'); $template->replace('REGISTER', '{LANG_OPTIONS}'); $template->replace('LINK_LOGIN', '{LINK_LOGOUT}'); $template->replace('LINK_REGISTER', '{LINK_OPTIONS}'); $make_translation = false; $make_new = false; if ($id != 0) { //Muss eine ältre Version angeziegt werden? if ($realid != '') { $wiki->set_id_language($id, $language, $realid); } else { $wiki->set_id_language($id, $language); } if ($wiki->exists_translation() && !$wiki->exists()) { $make_translation = true; $template->replace('META_TITLE', '{LANG_EDIT}: {LANG_CREATE_NEW}'); $template->replace('FULLPAGE_HEADER', '{LANG_EDIT}: {LANG_CREATE_NEW}'); } elseif (!$wiki->exists_translation() && !$wiki->exists()) { die('Error. You cannot edit an non exist ID'); } else { $w_title = $wiki->get_title(); $w_text = $wiki->get_text(); $template->replace('META_TITLE', '{LANG_EDIT}: ' . $w_title); $template->replace('FULLPAGE_HEADER', '{LANG_EDIT}: ' . $w_title); } } else { $make_new = true; $template->replace('META_TITLE', '{LANG_EDIT}: {LANG_CREATE_NEW}'); $template->replace('FULLPAGE_HEADER', '{LANG_EDIT}: {LANG_CREATE_NEW}');