Verfasst: 12.10.2006 15:09
super, danke habs nun geändert und werde mal weiter drauf achten.
äh.. du solltest das andere dann wieder rausnehmenscheibenbrot hat geschrieben:Hallo,
also beim ersten schritt kann ich das "Wartungsarbeiten" sehen.
Ich verstehe aber das 2. nicht ganz, wenn ich das mache:steht dann im chat WartungsarbeitenWartungsarbeitenCode: Alles auswählen
echo "</noframes>"; echo "</html>"; echo('Wartungsarbeiten');
Hab ich mal gemacht, dann ist ist das Problem von eben...mit dem header im hintergrund, aber Wartungsarbeiten steht da nichtmgutt hat geschrieben:äh.. du solltest das andere dann wieder rausnehmen
Da hab ich mal folgendes gemacht:mgutt hat geschrieben:teste mal in der chatspot.php bevor und nachdem die zeile mit dem include() kommt.
Code: Alles auswählen
include_once( $phpbb_root_path . 'extension.inc' );
include_once( $phpbb_root_path . 'common.' . $phpEx );
include_once( $phpbb_root_path . 'chatspot/chatspot_config.' . $phpEx );
echo('Wartungsarbeiten');
Code: Alles auswählen
Wartungsarbeiten
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0063d5b/chatspot/chatspot.php:37) in /www/htdocs/w0063d5b/chatspot/chatspot.php on line 118
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w0063d5b/chatspot/chatspot.php:37) in /www/htdocs/w0063d5b/chatspot/chatspot.php on line 119
Ist schon okmgutt hat geschrieben:wenn dir das alles zu doof ist kannst du mir auch deine ftp daten per pn zukommen lassen, aber ich bin erst gegen 19 uhr zu hause.
Code: Alles auswählen
purge_all_expired( $room_id );
build_frames( $room_id, $room_name );
join_room( $room_id, $initialize );
write_msg( 5, $room_id, _CHATSPOT_SYSTEM_MSG, "<b>$username</b> has joined <b>$room_name</b> on" );
write_log("$username has joined $room_name", 5, NULL, $room_id);
Code: Alles auswählen
purge_all_expired( $room_id );
build_frames( $room_id, $room_name, $mode );
echo('Wartungsarbeiten');
join_room( $room_id, $initialize, $mode );
Code: Alles auswählen
//function: build_frames
//
// echoes out the frames. this is used when clear_frames has been used and chatspot wants the user to go
// back to being able to type, etc.
function build_frames( $room_id, $room_name )
{
global $userdata, $chatspot_config, $board_config, $lang, $phpEx;
$username = $userdata[ 'username' ];
$user_id = $userdata[ 'user_id' ];
//Perform kick check
$kicks = $userdata['chatspot_kick'];
if ($chatspot_config['use_kicks'] != 0)
{
if (chatspot_kick_check($user_id, get_room_id($room_name)) == 1)
die("You have been kicked from this room.");
}
echo <<<SCRIPT
<html>
<head>
<title>phpBBChatSpot [$username] - [$room_name]</title>
<meta http-equiv='Content-Type' content='text/html'; charset="{$lang[ 'ENCODING' ]}">
<meta http-equiv='Content-Style-Type' content='text/css'>
<link rel='stylesheet' href='{$chatspot_config[ 'stylesheet' ]}' type='text/css'>
<!--Allows boss key-->
<script type="text/javascript" src="boss.js"></script>
<script language="javascript">
function closeChatspot() {
window.scripts.shut_down();
window.scripts.clear_frames();
window.scripts.leave_room();
return false;
}
</script>
</head>
SCRIPT;
// Check User Session
if( !$userdata[ 'session_logged_in' ] )
{
echo "<body>Please login to the forum to use chat.</body></html>";
exit();
}
//Butt ugly echo things are used here because the liberal use of append_sid is here.
echo "<frameset rows='0,23,*,36,0,0' framespacing='0' frameborder='NO' border='0' onUnload=\"javascript:closeChatspot();\">";
echo "<frame src='" . append_sid( 'javascript.' . $phpEx . '?room=' . $room_id . '&room_name=' . $room_name . '&user_id=' . $user_id . '&username=' . htmlspecialchars( $username, ENT_QUOTES ) ) . "' scrolling='no' name='scripts' marginwidth='0' marginheight='0'>";
echo "<frame id='title' src='" . append_sid( 'chatspot_title.' . $phpEx . '?room_name=' . $room_name . ( $userdata[ 'user_level' ] == ADMIN ? '&admin=1' : '' ) ) . "' scrolling='no' name='title' noresize marginwidth='0' marginheight='0'>";
echo "<frameset id='onlines' cols='150,*'>";
echo "<frame src='' scrolling='no' name='online_view' marginwidth='0' marginheight='0'>";
echo "<frame src='' scrolling='yes' name='message_view' marginwidth='0' marginheight='0' id='viewer'>";
echo "</frameset>";
echo "<frame id='send' src='" . append_sid( 'message_send.' . $phpEx . '?room=' . $room_id . "&username=" . $userdata['username'] ) . "' scrolling='no' name='sender' noresize marginwidth='0' marginheight='0'>";
echo "<frame id='int' src='" . append_sid( 'message_interpreter.' . $phpEx . '?room=' . $room_id ) . "' scrolling='no' name='message_interpret' marginwidth='0' marginheight='0'>";
echo "<frame id='ctrl' src='" . append_sid( 'message_control.' . $phpEx . '?room=' . $room_id . '&user_id=' . $user_id ) . "' scrolling='no' name='message_control' marginwidth='0' marginheight='0'>";
echo "</frameset>";
echo "<noframes>";
echo "<body>Your browser does not support frames. Please use <a href='http://mozilla.com'>Mozilla Firefox</a> for best results in Chatspot.</body>";
echo "</noframes>";
echo "</html>";
return $room_name;
}
Code: Alles auswählen
return $room_name;
jop, grad getestetmgutt hat geschrieben:Wenn Du die Echozeile ganz unten, aber noch vor:einbaust, da wird das Echo aber noch ausgegeben ja?Code: Alles auswählen
return $room_name;
Code: Alles auswählen
purge_all_expired( $room_id );
build_frames( $room_id, $room_name, $mode );
echo('Wartungsarbeiten');
join_room( $room_id, $initialize, $mode );