<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('startpage'); $template->hover_on('tuerkis'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); $template->replace('LINK_GERMAN', '/de/'); $template->replace('LINK_ENGLISH', '/en/'); $template->replace('META_TITLE', 'JabberFriends.org');
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; include 'classes/jforg_usersearch.php'; include 'classes/jforg_gettext.php'; $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'green'); $template->hover_on('green'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } $max_per_search = 5; $usersearch = new jforg_usersearch(); $content = '<br /><form action="{LINK_SEARCH}" method="post"><input name="search" type="text" /> <input class="submit" name="submit" type="submit" value="{LANG_SEARCH}" /></form>';
include 'classes/jforg_cleanurl.php'; $user = new jforg_user(); $wiki = new jforg_wiki(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $id = $_GET['id']; $id = $id + 0; if (!is_int($id)) { die("Invalid ID - {$id}"); } $realid = $_GET['realid']; $id = $id + 0; $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } $template->set_frame('wikiwindow', 'red'); $template->hover_on('red'); //Muss eine ältre Version angeziegt werden?
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; include 'classes/jforg_cite.php'; include 'classes/jforg_cleanurl.php'; $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $cite = new jforg_cite(); $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}';
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'green'); $template->hover_on('green'); session_start(); if ($user->login($_SESSION['nick'], $_SESSION['passwd'])) { die('You are already logged in'); } else { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } if ($_POST['submit'] != "") { if (preg_match('/[-._+\\d\\w]{3,}/i', $_POST['nick']) && preg_match('/[-._+\\d\\w]{6,}/i', $_POST['passwd'])) { $nick = $_POST['nick']; $passwd = $_POST['passwd']; if ($user->login($nick, $passwd)) { session_destroy(); session_start(); session_register('nick', 'passwd'); $_SESSION['nick'] = $_POST['nick'];
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'green'); $template->hover_on('green'); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $user = new jforg_user(); $user_id = $user->get_id($_SESSION['nick']); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } $content .= '<form action="{FORM_ACTION}" method="post"> <table cellpadding="0" cellspacing="2" border="0">'; if (!empty($_POST['submit'])) { $counter = 0;
include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } if (is_int($_GET['id'] + 0)) { $user_id = $_GET['id']; } else { die('ID is not an int' . $_GET['id']); } $user = new jforg_user(); $template = new jforg_template(); $template->set_path('design'); $template->set_frame('fullpage', 'green'); $template->hover_on('green'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } $user_details = $user->get_details($user_id); if ($language == "de") {
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; include 'classes/jforg_usersearch.php'; include 'classes/jforg_gettext.php'; $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'green'); $template->hover_on('green'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } $usersearch = new jforg_usersearch(); $content = '<form action="{LINK_SEARCH}" method="post"><input value="' . $_POST['search'] . '" name="search" type="text" /> <input class="submit" name="submit" type="submit" value="{LANG_SEARCH}" /></form>'; $max_per_search = 5;
include 'classes/jforg_user.php'; include 'classes/jforg_news.php'; include 'classes/jforg_cleanurl.php'; $user = new jforg_user(); $news = new jforg_news(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $id = $_GET['id']; $id = $id + 0; if (!is_int($id)) { die("Invalid ID - {$id}"); } $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'tuerkis'); $template->hover_on('tuerkis'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } $news = $news->get_by_id($id);
include 'classes/jforg_wiki.php'; include 'classes/jforg_cleanurl.php'; $wiki = new jforg_wiki(); $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $id = $_GET['id']; $id = $id + 0; if (!is_int($id)) { die("Invalid ID - {$id}"); } $realid = $_GET['realid']; $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'red'); $template->hover_on('red'); 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}'); if ($id != 0) { //Muss eine ältre Version angeziegt werden? if ($realid != '') { $wiki->set_id_language($id, $language, $realid); } else {
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; include 'classes/jforg_news.php'; include 'classes/jforg_usersearch.php'; include 'classes/jforg_cleanurl.php'; include 'classes/jforg_gettext.php'; $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $news = new jforg_news(); $template->set_path('design'); $template->set_frame('startpage'); $template->hover_on('tuerkis'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); }
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; include 'classes/jforg_news.php'; include 'classes/jforg_cleanurl.php'; $user = new jforg_user(); $news = new jforg_news(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'tuerkis'); $template->hover_on('tuerkis'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } if ($language == 'de') { $news_link = 'neuigkeiten';
include 'classes/jforg_user.php'; include 'classes/jforg_wiki.php'; include 'classes/jforg_cleanurl.php'; $user = new jforg_user(); $wiki = new jforg_wiki(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $id = $_GET['id']; $id = $id + 0; if (!is_int($id)) { die("Invalid ID - {$id}"); } $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'red'); $template->hover_on('red'); 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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); } $wiki->set_id_language($id, $language);
<?php include 'config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); //Pruefe ob ein gueltiger Sprachcode uebergeben wurde if (in_array($_GET['language'], $config['languages'])) { $language = $_GET['language']; } else { die('unknown language'); } //Pruefe ob eine gueltige class uebergeben wurde if (!in_array($_GET['class'], $config['class'])) { die('unknown class'); } //Pruefe ob eine gueltige class uebergeben wurde if (!in_array($_GET['method'], $config['method'])) { die('unknown method'); } switch ($_GET['class']) { case "startpage": $template->hover_on('tuerkis'); break; case "members": $template->hover_on('green'); break; case "portal": $template->hover_on('lila');
include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; include 'classes/jforg_cite.php'; include 'classes/jforg_cleanurl.php'; $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $id = $_GET['id']; $id = $id + 0; if (!is_int($id)) { die("Invalid ID - {$id}"); } $template = new jforg_template(); $user = new jforg_user(); $cite = new jforg_cite(); $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 { $template->replace('LOGIN', '{LANG_LOGIN}'); $template->replace('REGISTER', '{LANG_REGISTER}'); }
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $template->set_path('design'); $template->set_frame('fullpage', 'green'); $template->hover_on('green'); SESSION_START(); if (!$user->login($_SESSION['nick'], $_SESSION['passwd'])) { die('You are not logged in'); } $content = '<h2>{LANG_SETTING}</h2><a href="{LINK_CHANGEPW}">{LANG_CHANGEPW}</a><br /> <a href="{LINK_CHANGEDETAILS}">{LANG_CHANGEDETAILS}</a><br /> <a href="{LINK_CHANGETAGS}">{LANG_CHANGETAGS}</a><br /><br />'; if ($user->is_admin($_SESSION['nick'], $_SESSION['passwd'])) { $content .= '<h2>{LANG_ADMIN}</h2> <a href="/' . $language . '/news_editor/neu.htm">{LANG_WRITENEWS}</a>'; } $template->replace('FULLPAGE_TEXT', $content); $template->replace('LOGIN', '{LANG_LOGOUT}'); $template->replace('REGISTER', '{LANG_OPTIONS}'); $template->replace('LINK_LOGIN', '{LINK_LOGOUT}');
<?php include 'includes/config.php'; include 'classes/jforg_template.php'; include 'classes/jforg_user.php'; include 'classes/jforg_tags.php'; //include('classes/jforg_gettext.php'); $user = new jforg_user(); if (in_array($_GET['lang'], $config['languages'])) { $language = $_GET['lang']; } else { die('Language ist nicht bekannt'); } $template = new jforg_template(); $user = new jforg_user(); $tags = new jforg_tags(); $template->set_path('design'); $template->set_frame('fullpage', 'green'); $template->hover_on('green'); SESSION_START(); $user_id = $user->get_id($_SESSION['nick']); if (!$user->login($_SESSION['nick'], $_SESSION['passwd'])) { } $content = '<form action="{FORM_ACTION}" method="post"> <table cellpadding="0" cellspacing="2" border="0">'; $tag_value = $_GET['tag_value']; $users = $tags->list_users($tag_value); if (!empty($_POST['submit'])) { $_POST['tag'] = $_POST['search_tagged_users']; $url = $_POST['tag'] . '.htm'; if ($url != ".htm") {