Verfasst: 28.10.2005 19:36
Einen Fehler habe ich schon gefunden und korregiert.
Jetzt habe ich in die index.php folgendes eingetragen:
//
// Begin PJIRC Channel Userlist & Count Integrations
//
$cachefile = 'cache/blitzedlist.html';
$cachetime = 1 * 60;
// Use cache if younger than $cachetime
if ( file_exists($cachefile) && time() - $cachetime < filemtime($cachefile) ) {
$listfile = @fopen($phpbb_root_path.$cachefile, "r");
$users = "";
$count = 0;
while ($nickname = fgets($listfile)) {
$users .= trim($nickname) . ", ";
$count++;
}
$thingydingy = 1;
}
else {
if ( $listfile = @fopen("http://scripts.blitzed.org/chanuserlist ... s=PASSWORD", "r") ) {
$users = "";
$fullfile = "";
$count = 0;
while ($nickname = fgets($listfile)) {
$users .= trim($nickname) . ", ";
$fullfile .= $nickname;
$count++;
}
// Cache the output to file
$fp = fopen($phpbb_root_path.$cachefile, 'w');
fwrite($fp, $fullfile);
fclose($fp);
$thingydingy = 1;
} else {
$myuserlist = $lang['IRC_memberlist_offline'];
$nickname = "";
$listfile = "";
$count = 0;
$users = "";
$thingydingy = 0;
}
}
if ( $thingydingy == 1 ) {
// Remove , from end
$users = ereg_replace(', $', "", $users);
$myuserlist = $lang['IRC_memberlist']." <b>$count</b><br />\n$users";
$myuserlist;
}
Irgend was stimmt aber immer noch nicht. Hoffe auf Hilfe.
Jetzt habe ich in die index.php folgendes eingetragen:
//
// Begin PJIRC Channel Userlist & Count Integrations
//
$cachefile = 'cache/blitzedlist.html';
$cachetime = 1 * 60;
// Use cache if younger than $cachetime
if ( file_exists($cachefile) && time() - $cachetime < filemtime($cachefile) ) {
$listfile = @fopen($phpbb_root_path.$cachefile, "r");
$users = "";
$count = 0;
while ($nickname = fgets($listfile)) {
$users .= trim($nickname) . ", ";
$count++;
}
$thingydingy = 1;
}
else {
if ( $listfile = @fopen("http://scripts.blitzed.org/chanuserlist ... s=PASSWORD", "r") ) {
$users = "";
$fullfile = "";
$count = 0;
while ($nickname = fgets($listfile)) {
$users .= trim($nickname) . ", ";
$fullfile .= $nickname;
$count++;
}
// Cache the output to file
$fp = fopen($phpbb_root_path.$cachefile, 'w');
fwrite($fp, $fullfile);
fclose($fp);
$thingydingy = 1;
} else {
$myuserlist = $lang['IRC_memberlist_offline'];
$nickname = "";
$listfile = "";
$count = 0;
$users = "";
$thingydingy = 0;
}
}
if ( $thingydingy == 1 ) {
// Remove , from end
$users = ereg_replace(', $', "", $users);
$myuserlist = $lang['IRC_memberlist']." <b>$count</b><br />\n$users";
$myuserlist;
}
Irgend was stimmt aber immer noch nicht. Hoffe auf Hilfe.