コード例 #1
0
<?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}');
コード例 #2
0
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');
        break;
    case "wiki":
        $template->hover_on('red');
        break;
}
SESSION_START();
if ($user->login($_SESSION['nick'], $_SESSION['passwd'])) {
    $template->replace('LOGIN', '{LANG_LOGOUT}');
    $template->replace('REGISTER', '{LANG_OPTIONS}');
コード例 #3
0
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}';
    $template->replace_wiki('FULLPAGE_TEXT', $pre_content);
}
if (!empty($_POST['safe'])) {
コード例 #4
0
<?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');
コード例 #5
0
$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?
if ($realid != '') {
    $wiki->set_id_language($id, $language, $realid);
} else {
    $wiki->set_id_language($id, $language);
}
$english_link = '/en/wiki/' . $id . '-' . cleanurl($wiki->get_english_link()) . '.htm';
$german_link = '/de/wiki/' . $id . '-' . cleanurl($wiki->get_german_link()) . '.htm';
$template->replace('META_TITLE', $wiki->get_title());
$template->replace('WIKI_HEADER', $wiki->get_title());
if ($language == "de") {
    if ($realid != '') {
        $options = '<a href="/de/editor/' . $id . '_' . $realid . '.htm">Diese Seite Bearbeiten</a><br />';
    } else {
        $options = '<a href="/de/editor/' . $id . '.htm">Diese Seite Bearbeiten</a><br />';