Edit: Such-Request gelöscht: ne nette hab ich jetzt gefunden - hoffe ich

-> siehe 2. Posting - da hab ich nämlich noch so paar probleme mit

Danke
Wuppi
Code: Alles auswählen
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
?>
<iframe src="chatbox_mod/chatbox.php" width="800" height="375" align="center">Alternativlink</iframe>
<?
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Code: Alles auswählen
if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
}
error_reporting(E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);
include_once($phpbb_root_path . 'config.'.$phpEx);
$table_chatbox_session_name = $table_prefix . 'chatbox_session';
// Kill Ghosts
$sql = "DELETE FROM " . $table_chatbox_session_name . " WHERE lastactive < '" . (time() - 300) . "'";
if (!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not check session for Ghosts", "", __LINE__, __FILE__, $sql);
}
// Get all remain sessions
$sql = 'SELECT * FROM ' . $table_chatbox_session_name;
if (!$sol = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, "Could not query ChatBox Session information", "", __LINE__, __FILE__, $sql);
}
$howmanychat = $db->sql_numrows($sol); // Return this
$isimler[0] = $db->sql_numrows($sol);
$i = 1;
while ($record = $db->sql_fetchrow($sol))
{
$isimler[$i++] = $record['username'];
}
$chatters = $isimler[1];
for($s = 2; $s <= $isimler[0]; $s++)
{
$chatters .= ", $isimler[$s]"; // Return this
}