Menu

[r2102]: / trunk / LWJGL / www / irclog.php  Maximize  Restore  History

Download this file

24 lines (19 with data), 595 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<? require('_include/header.php'); ?>
<h1>Last 100 lines of the IRC chat (<a href="irc://irc.freenode.net/lwjgl">#LWJGL IRC channel</a>)</h1>
<p>
<?php
function formatIRCLine($line) {
$date = sscanf($line, "%s %s");
$content = substr($line, strlen($date[0] . $date[1]) + 2);
return "[" . $date[1] . " " . $content;
}
$body = htmlentities(file_get_contents("http://irc-stats.lwjgl.org/log.php"));
$lines = split("\n", $body);
foreach ($lines as $line) {
if(strlen($line) > 0) {
print formatIRCLine($line) . "<br>\n";
}
}
?>
</p>
<? require('_include/footer.php'); ?>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.