Code: Alles auswählen
<!-- INCLUDE overall_header.html -->
{$CA_BLOCK_START}
{$CA_CAP2_START}Wilkommen auf Rap-Unlimited{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<!-- IF not S_USER_LOGGED_IN -->
<tr>
<td class="row1" align="left" width="25%">
...
</td>
<td class="row1" align="left" width="75%">
...
</td>
</tr>
</table>
{$CA_BLOCK_END}
<br />
{$CA_BLOCK_START}
{$CA_CAP2_START}Wilkommen auf Rap-Unlimited{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<tr>
<td class="row1" align="left" width="65%">
Wenn dies dein erster Besuch auf Rap-Unlimited ist,
dann lies dir bitte zuerst einmal die
<a href="./viewtopic.php?f=4&t=2">Forenregeln</a>
und das <a href="./faq.php">Hilfe</a> durch.
Als Gast hast du beschränkte Rechte in diesem Forum.
Um eigene Beiträge verfassen zu können ist eine
<a href="./ucp.php?mode=register">Registrierung</a> erforderlich.
Schau dich einfach im Forum um und beteilige dich in den
Bereichen die dich interessieren.
</td>
<td class="row1" align="left" width="35%">
<form method="post" action="{S_LOGIN_ACTION}">
<span class="genmed">{L_USERNAME}:</span> <input class="post" type="text" name="username" size="10" /> <span class="genmed">{L_PASSWORD}:</span> <input class="post" type="password" name="password" size="10" /> <!-- IF S_AUTOLOGIN_ENABLED --><span class="gensmall"></span> <!-- ENDIF --> <input type="submit" class="btnmain" name="login" value="{L_LOGIN}" />
</form>
<br />
» <a href="./ucp.php?mode=login">Alternativ-Login</a>
<br />
» <a href="./ucp.php?mode=sendpassword">Ich habe mein Passwort vergessen</a>
<br />
» <a href="./ucp.php?mode=register"><b>Jetzt kostenlos registrieren!</b></a>
<br /><br />
</td>
</tr>
</table>
{$CA_BLOCK_END}
<br />
<!-- ELSE -->
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<tr>
<td class="row1" align="left" width="65%">
</td>
<td class="row1" align="left" width="35%">
<!-- IF not S_IS_BOT -->
<!-- IF S_USER_LOGGED_IN --><a href="{U_PROFILE}">{L_PROFILE}</a> <!-- ENDIF -->
<br />
<!-- IF S_USER_LOGGED_IN -->
<!-- IF S_DISPLAY_PM -->Sie haben <a href="{U_PRIVATEMSGS}">{PRIVATE_MESSAGE_INFO}</a> <!-- ENDIF -->
<br />
<!-- ELSEIF S_REGISTER_ENABLED and not (S_SHOW_COPPA or S_REGISTRATION) --><a href="{U_REGISTER}">{L_REGISTER}</a> • <!-- ENDIF -->
<!-- ENDIF -->
<!-- IF U_RESTORE_PERMISSIONS --><a href="{U_RESTORE_PERMISSIONS}">{L_RESTORE_PERMISSIONS}</a> • <!-- ENDIF -->
<!-- IF S_DISPLAY_PM --><a href="./chat.php" title="{CHAT_TITLE}">{CHAT_LABEL}</a> <!-- ENDIF -->
<br />
<!-- IF not S_IS_BOT -->
<!-- ENDIF -->
<!-- IF not S_IS_BOT --> <a href="{U_LOGIN_LOGOUT}">{L_LOGIN_LOGOUT}</a><!-- ENDIF -->
</td>
</tr>
</table>
{$CA_BLOCK_END}
<br />
<!-- ENDIF -->
{$CA_BLOCK_START}
{$CA_CAP2_START}<u>Rap-Unlimited:</u> Top 5 Anzeige{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<tr>
<td class="row1" align="left">
<iframe src="./top.5.php" width="49%" height="135" name="SELFHTML_in_a_box" frameborder="0">
</iframe>
<iframe src="./top5.php" width="49%" height="135" name="SELFHTML_in_a_box" frameborder="0">
</iframe>
</td>
</tr>
</table>
{$CA_BLOCK_END}
<br />
{$CA_BLOCK_START}
{$CA_CAP2_START}...{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<tr>
<td class="row1" style="padding:5px 5px 5px 5px;" width="75%">
</td>
<td class="row1" style="padding:5px 5px 5px 5px;" width="25%">
</td>
</tr>
</table>
{$CA_BLOCK_END}
{$CA_BLOCK_START}
{$CA_CAP2_START}{L_STATISTICS}{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<tr>
<td class="row1"><img src="{T_THEME_PATH}/images/stats.gif" alt="{L_STATISTICS}" /></td>
<td class="row1 nobold" width="100%" valign="middle"><p class="genmed">
{START_DATE}|{TOTAL_TOPICS_OTHER} {L_ONLINE_START} {L_BOARD_STARTS}{L_ONLINE_SINCE}<b>{L_ONLINE_FOR}</b> |
{TOTAL_POSTS} | {BOARD_DAYS} |{TOTAL_TOPICS} | {TOTAL_USERS_OTHER} | {NEWEST_USER}</p></td>
</tr>
</table>
{$CA_BLOCK_END}
<!-- INCLUDE overall_footer.html -->
Code: Alles auswählen
<?php
// Benˆtigte Dateien und Variablen von phpBB
define('IN_PHPBB', true);
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
// Session auslesen und Benutzer-Informationen laden
$user->session_begin();
$user->setup();
$auth->acl($user->data);
// Set some stats, get posts count from forums data if we... hum... retrieve all forums data
$total_posts = $config['num_posts'];
$total_topics = $config['num_topics'];
$total_users = $config['num_users'];
$l_total_user_s = ($total_users == 0) ? 'TOTAL_USERS_ZERO' : 'TOTAL_USERS_OTHER';
$l_total_post_s = ($total_posts == 0) ? 'TOTAL_POSTS_ZERO' : 'TOTAL_POSTS_OTHER';
$l_total_topic_s = ($total_topics == 0) ? 'TOTAL_TOPICS_ZERO' : 'TOTAL_TOPICS_OTHER';
//Board Statistik
$start_date = $user->format_date($config['board_startdate']);
$boarddays = sprintf('%.0f', (time() - $config['board_startdate']) / 86400);
/*
* Inhaltsbereich
*/
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($user->lang[$l_total_post_s], $total_posts),
'TOTAL_TOPICS' => sprintf($user->lang[$l_total_topic_s], $total_topics),
'TOTAL_USERS' => sprintf($user->lang[$l_total_user_s], $total_users),
'NEWEST_USER' => sprintf($user->lang['NEWEST_USER'], get_username_string('full', $config['newest_user_id'], $config['newest_username'], $config['newest_user_colour'])),
'TOTAL_LOADS' => sprintf($user->lang['TOTAL_SITELOADS'], $config['site_loads']),
'LEGEND' => $legend,
'BIRTHDAY_LIST' => $birthday_list,
'FORUM_IMG' => $user->img('forum_read', 'NO_UNREAD_POSTS'),
'FORUM_UNREAD_IMG' => $user->img('forum_unread', 'UNREAD_POSTS'),
'FORUM_LOCKED_IMG' => $user->img('forum_read_locked', 'NO_UNREAD_POSTS_LOCKED'),
'FORUM_UNREAD_LOCKED_IMG' => $user->img('forum_unread_locked', 'UNREAD_POSTS_LOCKED'),
'S_LOGIN_ACTION' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=login'),
'S_DISPLAY_BIRTHDAY_LIST' => ($config['load_birthdays']) ? true : false,
'U_MARK_FORUMS' => ($user->data['is_registered'] || $config['load_anon_lastread']) ? append_sid("{$phpbb_root_path}index.$phpEx", 'hash=' . generate_link_hash('global') . '&mark=forums') : '',
'U_MCP' => ($auth->acl_get('m_') || $auth->acl_getf_global('m_')) ? append_sid("{$phpbb_root_path}mcp.$phpEx", 'i=main&mode=front', true, $user->session_id) : '')
);
include($phpbb_root_path . 'includes/functions_wwh.' . $phpEx);
// Header und Titel der Seite
page_header('Start');
// Angabe eurer Content-Seite
$template->set_filenames(array(
'body' => 'start.html')
);
if ($auth->acl_get('a_') || $auth->acl_getf_global('m_'))
{
}
// Footer
page_footer();
?>