$template->set_path('design'); $template->set_frame('fullpage', 'lila'); $template->hover_on('lila'); SESSION_START(); if ($user->login($_SESSION['nick'], $_SESSION['passwd'])) { $template->replace('LOGIN', '{LANG_LOGOUT}'); $template->replace('REGISTER', '{LANG_OPTIONS}'); $template->replace('LINK_LOGIN', '{LINK_LOGOUT}'); $template->replace('LINK_REGISTER', '{LINK_OPTIONS}'); } else { die('You are not logged in'); } if (!empty($_POST['preview'])) { $zitat = $_POST['text']; $pre_content = $template->highlight_cite($_POST['text']) . '<br /><br />{FULLPAGE_TEXT}'; $template->replace_wiki('FULLPAGE_TEXT', $pre_content); } if (!empty($_POST['safe'])) { if ($language == 'de') { $cite_link = 'zitat'; } else { $cite_link = 'cite'; } if (!empty($_POST['text'])) { $link_id = $cite->write($_POST['text'], $user->get_id($_SESSION['nick']), $language); $url = '/' . $language . '/portal/' . $cite_link . '-' . $link_id . '.htm'; header("Location: {$url}"); } else { $pre_content = '<em>{LANG_FILLIN}</em><br /><br />{FULLPAGE_TEXT}'; $template->replace_wiki('FULLPAGE_TEXT', $pre_content); }
$memberlink = '/de/mitglieder/'; } elseif ($language == "en") { if ($realid != '') { $options = '<a href="/en/editor/' . $id . '_' . $realid . '.htm">Edit this page</a><br />'; } else { $options = '<a href="/en/editor/' . $id . '.htm">Edit this page</a><br />'; } $options = $options . ' <a href="/en/wiki/versions_of_' . $id . '.htm">List versions</a><br /><br /> <a href="/en/editor/new.htm">Create a new page</a><br />'; $memberlink = '/en/members/'; } $authors = $wiki->get_authors(); $info_text = ''; foreach ($authors as $author) { $nickname = $user->get_nick($author['user_id']); $info_text = $info_text . '<a href="' . $memberlink . $author['user_id'] . '-' . $nickname . '.htm">' . $nickname . '</a><br />'; } $template->replace_wiki('WIKI_TEXT', $wiki->get_text()); $template->replace('INFO_TEXT1', $options); $template->replace('INFO_TEXT2', $info_text); $template->replace('INFO_HEADER1', '{LANG_OPTIONS}'); $template->replace('INFO_HEADER2', '{LANG_AUTHORS}'); $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); $template->replace('LINK_GERMAN', $german_link); $template->replace('LINK_ENGLISH', $english_link); $template->replace('META_TITLE', 'JabberFriends.org'); $template->translate($language); include 'includes/links.php'; $template->write();