Ejemplo n.º 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}');