MX Problem
Verfasst: 21.06.2003 22:22
Ich will gerne das der letzte Beitrag eines Forums auf der Index unter Beitrag als Link erscheint. Aber anscheinend geht das nicht wegen meines MX Portals. Weis einer ne Lösung?
Code: Alles auswählen
<?php
/***************************************************************************
* (admin) index.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: index.php,v 1.37 2002/02/19 13:27:25 psotfx Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
//
// Load default header
//
define('IN_PHPBB', 1);
$phpbb_root_path = "./";
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
include($phpbb_root_path . 'includes/functions_selects.'.$phpEx);
include($phpbb_root_path . 'includes/bbcode.'.$phpEx);
include($phpbb_root_path . 'includes/mx_constants.'.$phpEx);
include($phpbb_root_path . 'includes/mx_functions.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
// ---------------
// Begin functions
//
//
// End functions
// -------------
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
$in_portal = 1;
$portal_config = read_portal_config();
ECHO '<TABLE BORDER="0" CELLSPACING="4" CELLPADDING="0" WIDTH="100%"><TR VALIGN="TOP"><TD> ';
$side = 'left' ;
$block_config = read_block_config( $side );
$block_size = $portal_config['portal_size_left_side'];
for ($block_ind = 0 ; $block_ind < $number_block ; $block_ind++ )
{
include( $block_config[$block_ind][block_source_file] );
}
ECHO '</TD><TD>';
$side = 'middle' ;
$block_config = read_block_config( $side );
$block_size = $portal_config['portal_size_middle_side'];
for ($block_ind = 0 ; $block_ind < $number_block ; $block_ind++ )
{
include( $block_config[$block_ind][block_source_file] );
}
ECHO '</TD><TD>';
$side = 'right' ;
$block_config = read_block_config( $side );
$block_size = $portal_config['portal_size_right_side'];
for ($block_ind = 0 ; $block_ind < $number_block ; $block_ind++ )
{
include( $block_config[$block_ind][block_source_file] );
}
ECHO '</TD>';
ECHO '</TABLE>';
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
unset($in_portal);
exit;
?>