Verfasst: 13.07.2003 19:46
..poste mal einen Link zu deiner /admin/index_body.tpl .
Seite nicht gefunden
Code: Alles auswählen
<!-- BEGIN viewstatsswitch -->
Hat geklappt!Acid hat geschrieben:Anweisungen wie....müssen jeweils einzeln in einer Zeile stehen, sprich es darf kein Code davor/danach vorkommen (sondern nur darüber/darunter).Code: Alles auswählen
<!-- BEGIN viewstatsswitch -->
also mein ftp programm findet des net!#-----[ ÖFFNEN ]------------------------------------------
#
# includes/page_tail.php
#
#-----[ FINDE ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
#
#-----[ MIT FOLGENDEM ERSETZEN ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN || $userdata['user_level'] == MOD || $userdata['user_level'] == JUNIOR_ADMIN ) ? '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
Code: Alles auswählen
if ( !defined('IN_PHPBB') )
{
die('Hacking attempt');
}
//
// Show the overall footer.
//
if ( $userdata['user_level'] == ADMIN )
{
$admin_link = '<a href="admin/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Admin_panel'] . '</a><br /><a href="super_mod/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Super_Mod_panel'] . '</a><br /><br />';
}
else if ( $userdata['user_level'] == LESS_ADMIN )
{
$admin_link = '<a href="super_mod/index.' . $phpEx . '?sid=' . $userdata['session_id'] . '">' . $lang['Super_Mod_panel'] . '</a><br /><br />';
}
$template->set_filenames(array(
'overall_footer' => ( empty($gen_simple_header) ) ? 'overall_footer.tpl' : 'simple_footer.tpl')
);
$template->assign_vars(array(
'PHPBB_VERSION' => '2' . $board_config['version'],
'PLUS_VERSION' => $board_config['plus_version'],
'TRANSLATION_INFO' => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : '',
'ADMIN_LINK' => $admin_link)
);
$template->pparse('overall_footer');
//
// Close our DB connection.
//
$db->sql_close();
//
// Compress buffered output if required and send to browser
//
if ( $do_gzip_compress )
{
//
// Borrowed from php.net!
//
$gzip_contents = ob_get_contents();
ob_end_clean();
$gzip_size = strlen($gzip_contents);
$gzip_crc = crc32($gzip_contents);
$gzip_contents = gzcompress($gzip_contents, 9);
$gzip_contents = substr($gzip_contents, 0, strlen($gzip_contents) - 4);
echo "\x1f\x8b\x08\x00\x00\x00\x00\x00";
echo $gzip_contents;
echo pack('V', $gzip_crc);
echo pack('V', $gzip_size);
}
exit;
?>
#-----[ FINDE ]------------------------------------------
#
<h1>{L_FORUM_STATS}</h1>
#
#-----[ DAVOR EINFÜGEN ]------------------------------------------
#
<!-- BEGIN viewstatsswitch -->
Code: Alles auswählen
<div class="maintitle">{L_WELCOME}</div>
<br />
<div class="genmed">{L_ADMIN_INTRO}</div>
<br />
<div class="subtitle">{L_FORUM_STATS}</div>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th width="25%">{L_STATISTIC}</th>
<th width="25%">{L_VALUE}</th>
<th width="25%">{L_STATISTIC}</th>
<th width="25%">{L_VALUE}</th>
</tr>
<tr>
<td class="row1" nowrap="nowrap" align="right">{L_NUMBER_POSTS}:</td>
<td class="row2">{NUMBER_OF_POSTS}</td>
<td class="row1" align="right">{L_POSTS_PER_DAY}:</td>
<td class="row2">{POSTS_PER_DAY}</td>
</tr>
<tr>
<td class="row1" nowrap="nowrap" align="right">{L_NUMBER_TOPICS}:</td>
<td class="row2">{NUMBER_OF_TOPICS}</td>
<td class="row1" nowrap="nowrap" align="right">{L_TOPICS_PER_DAY}:</td>
<td class="row2">{TOPICS_PER_DAY}</td>
</tr>
<tr>
<td class="row1" nowrap="nowrap" align="right">{L_NUMBER_USERS}:</td>
<td class="row2">{NUMBER_OF_USERS}</td>
<td class="row1" nowrap="nowrap" align="right">{L_USERS_PER_DAY}:</td>
<td class="row2">{USERS_PER_DAY}</td>
</tr>
<tr>
<td class="row1" nowrap="nowrap" align="right">{L_BOARD_STARTED}:</td>
<td class="row2"><span class="genmed">{START_DATE}</span></td>
<td class="row1" nowrap="nowrap" align="right">{L_AVATAR_DIR_SIZE}:</td>
<td class="row2">{AVATAR_DIR_SIZE}</td>
</tr>
<tr>
<td class="row1" nowrap="nowrap" align="right">{L_DB_SIZE}:</td>
<td class="row2">{DB_SIZE}</td>
<td class="row1" align="right">{L_GZIP_COMPRESSION}:</td>
<td class="row2">{GZIP_COMPRESSION}</td>
</tr>
</table>
<br />
<div class="subtitle">{L_WHO_IS_ONLINE}</div>
<table width="100%" cellpadding="3" cellspacing="1" border="0" class="forumline">
<tr>
<th width="20%"> {L_USERNAME} </th>
<th width="20%"> {L_STARTED} </th>
<th width="20%"> {L_LAST_UPDATE} </th>
<th width="20%"> {L_FORUM_LOCATION} </th>
<th width="20%"> {L_IP_ADDRESS} </th>
</tr>
<!-- BEGIN reg_user_row -->
<tr>
<td width="20%" class="{reg_user_row.ROW_CLASS}"> <a href="{reg_user_row.U_USER_PROFILE}" class="name">{reg_user_row.USERNAME}</a> </td>
<td width="20%" align="center" nowrap="nowrap" class="{reg_user_row.ROW_CLASS}"> <span class="genmed">{reg_user_row.STARTED}</span> </td>
<td width="20%" align="center" nowrap="nowrap" class="{reg_user_row.ROW_CLASS}"> <span class="genmed">{reg_user_row.LASTUPDATE}</span> </td>
<td width="20%" class="{reg_user_row.ROW_CLASS}"> <a href="{reg_user_row.U_FORUM_LOCATION}">{reg_user_row.FORUM_LOCATION}</a> </td>
<td width="20%" class="{reg_user_row.ROW_CLASS}"> <a href="{reg_user_row.U_WHOIS_IP}" target="_phpbbwhois">{reg_user_row.IP_ADDRESS}</a> </td>
</tr>
<!-- END reg_user_row -->
<tr>
<td colspan="5" height="1" class="row3"><img src="../images/spacer.gif" width="1" height="1" alt="" /></td>
</tr>
<!-- BEGIN guest_user_row -->
<tr>
<td width="20%" class="{guest_user_row.ROW_CLASS}"> <span class="genmed">{guest_user_row.USERNAME}</span> </td>
<td width="20%" align="center" class="{guest_user_row.ROW_CLASS}"> <span class="genmed">{guest_user_row.STARTED}</span> </td>
<td width="20%" align="center" nowrap="nowrap" class="{guest_user_row.ROW_CLASS}"> <span class="genmed">{guest_user_row.LASTUPDATE}</span> </td>
<td width="20%" class="{guest_user_row.ROW_CLASS}"> <a href="{guest_user_row.U_FORUM_LOCATION}">{guest_user_row.FORUM_LOCATION}</a> </td>
<td width="20%" class="{guest_user_row.ROW_CLASS}"> <a href="{guest_user_row.U_WHOIS_IP}" target="_phpbbwhois">{guest_user_row.IP_ADDRESS}</a> </td>
</tr>
<!-- END guest_user_row -->
</table>
<br />
#-----[ FINDE ]------------------------------------------
#
<td class="row1" nowrap="nowrap">{L_GZIP_COMPRESSION}:</td>
<td class="row2"><b>{GZIP_COMPRESSION}</b></td>
</tr>
</table>
#
#-----[ DANACH EINFÜGEN ]------------------------------------------
#
<!-- END viewstatsswitch -->
<!-- BEGIN viewonlineswitch -->
Code: Alles auswählen
deselbe wie bei dem zuvor