Call this v1.3.1. Moved 'Clear IRC Logs' to log page.

master
Pentium44 2020-12-11 21:10:53 -08:00
parent 713dfeb130
commit a12bac4133
4 changed files with 119 additions and 8 deletions

View File

@ -60,6 +60,9 @@ Read-Write access for working directory
#### Changelog
* v1.3.1:
* Moved "Clear IRC Logs" to logs page, needed to be done!
* v1.3.0:
* CSS changes / fixes + cleanup
* Added server/port set ability on register + settings (Can toggle on or off in config.php as $allowMultiServer == "false")

View File

@ -5,20 +5,20 @@
// https://github.com/Pentium44/idleirc
///////
$title = "IdleIRC"; // Chat title
$desc = "IdleIRC is a simple web based IRC client & bouncer service."; // Chat description
$title = "IdleIRC"; // Main IdleIRC title
$desc = "IdleIRC is a simple web based IRC client & bouncer service."; // IdleIRC description
$server = "cddo.cf"; // IRC server connected to (for information display panel and client)
$port = "1337"; // IRC server port (for information display panel)
$port = "1337"; // IRC server port (for information display panel and client)
$default_channel = "#theroot"; // Default channel to push users into
$logfile = "irclog.txt"; // Log instances for each bouncer
$logfile = "irclog.txt"; // Log instances for IdleIRC
$allowMultiServer = "true"; // [true/false] Allow users to set other IRC servers for bouncer connect
//$maxloglength = "10"; // Max line length for flatfile IRC logger ~ bouncer.
//$maxloglength = "10"; // Max line length for flatfile IRC logger ~ bouncer. This is a WIP...
///// WEBCLIENT LAYOUT /////
$ipcolor = "#00FF00";
///// NO TOUCHY SECTION /////
$version = "1.3.0"; // CWChat version
$version = "1.3.1"; // IdleIRC version
function doLog($string) {
file_put_contents($GLOBALS['logfile'], $string . "\r\n", FILE_APPEND);

View File

@ -336,7 +336,7 @@ if (!isset($_SESSION['idleirc-user'])) {
}
if(isset($_SESSION['idleirc-pass']) && $userpass != "" && $userpass == $_SESSION['idleirc-pass']) {
echo "<div class='navbar'><a href='index.php'>Back to IRC</a></div>\n";
echo "<div class='navbar'><a href='index.php'>Back to IRC</a> <a onclick='doClearLog();'>Clear IRC logs</a></div>\n";
echo "<div id='logmsgs'><table>\n" . $logcontents . "</table></div>\n";
}
} else if(isset($_GET['settings'])) {
@ -394,7 +394,6 @@ if (!isset($_SESSION['idleirc-user'])) {
echo "<a onclick='doLogout();'>Disconnect from server</a>\n";
}
?>
<a onclick="doClearLog();">Clear IRC logs</a>
<a href="index.php?logs">IRC Logs</a>
<a href="index.php?settings">Settings</a>
</div>

109
mrtux.log Normal file
View File

@ -0,0 +1,109 @@
<tr><td class='userinfo'><b>tux</b> ~ </td><td> left the server...</td></tr>
<tr><td class='userinfo'><span style='color:#00FF00;'>cddo.cf</span> ~ </td><td> :cddo.cf 001 tux :Welcome to the Internet Relay Network tux!~tux@localhost
:cddo.cf 002 tux :Your host is cddo.cf, running version ngircd-25 (x86_64/pc/linux-gnu)
:cddo.cf 003 tux :This server has been started Tue Nov 24 2020 at 17:23:18 (PST)
:cddo.cf 004 tux cddo.cf ngircd-25 abBcCFiIoqrRswx abehiIklmMnoOPqQrRstvVz
:cddo.cf 005 tux RFC2812 IRCD=ngIRCd CHARSET=UTF-8 CASEMAPPING=ascii PREFIX=(qaohv)~&amp;@%+ CHANTYPES=#&amp;+ CHANMODES=beI,k,l,imMnOPQRstVz CHANLIMIT=#&amp;+:20 :are supported on this server
:cddo.cf 005 tux CHANNELLEN=50 NICKLEN=12 TOPICLEN=490 AWAYLEN=127 KICKLEN=400 MODES=5 MAXLIST=beI:50 EXCEPTS=e INVEX=I PENALTY :are supported on this server
:cddo.cf 251 tux :There are 8 users and 0 services on 2 servers
:cddo.cf 252 tux 2 :operator(s) online
:cddo.cf 254 tux 7 :channels formed
:cddo.cf 255 tux :I have 6 users, 0 services and 1 servers
:cddo.cf 265 tux 6 8 :Current local users: 6, Max: 8
:cddo.cf 266 tux 8 11 :Current global users: 8, Max: 11
:cddo.cf 250 tux :Highest connection count: 10 (17255 connections received)
:cddo.cf 375 tux :- cddo.cf message of the day
:cddo.cf 372 tux :- __________ .___.__ /\ __________ __
:cddo.cf 372 tux :- \______ \_____ __| _/|__|__ __ _____)/ \______ \ ____ _____/ |_
:cddo.cf 372 tux :- | _/\__ \ / __ | | | | \/ ___/ | _// _ \ / _ \ __\
:cddo.cf 372 tux :- | | \ / __ \_/ /_/ | | | | /\___ \ | | ( &lt;_&gt; | &lt;_&gt; ) |
:cddo.cf 372 tux :- |____|_ /(____ /\____ | |__|____//____ &gt; |____|_ /\____/ \____/|__|
:cddo.cf 372 tux :- \/ \/ \/ \/ \/
:cddo.cf 372 tux :-
:cddo.cf 372 tux :- Welcome to Radius' Root! Powered by ngircd, and my MultiServ services bot!
:cddo.cf 372 tux :-
:cddo.cf 372 tux :- Administration: Chris Dorman: cddo@riseup.net
:cddo.cf 372 tux :-
:cddo.cf 372 tux :- Main channels:
:cddo.cf 372 tux :- #theroot ~ Default Channel, chitchat 'n all that!
:cddo.cf 372 tux :- #freonlinux ~ Freon Linux's official IRC channel!
:cddo.cf 376 tux :End of MOTD command
</td></tr>
<tr><td class='userinfo'><span style='color:#00FF00;'>cddo.cf</span> ~ </td><td> :tux!~tux@localhost JOIN :#theroot
:cddo.cf 332 tux #theroot :Welcome to Radius' Root! ~ https://cddo.cf
:cddo.cf 333 tux #theroot MultiServ 1606267573
:cddo.cf 353 tux = #theroot :tux Pentium44 @MultiServ Menchers meowkov OldCoder mrtux zlg
:cddo.cf 366 tux #theroot :End of NAMES list
</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> remembering PRAGMA lines is a bitch.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> It's necessary to get DELETEs to cascade correctly</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> I continue to be blown away by the new pieces of SQL and schemas I learn.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> Just the other day I was putting together a proof of concept database, and didn't know about fun shit in SQLite like: SELECT (g_beat - g_buy) AS age, title FROM games [...]</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> Had *NO* clue you could just make up a field using whatever logic you want, in the output.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> Then name the field using the AS keyword.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> A lot of things can be produced with just the DB backend of a piece of software.</td></tr>
<tr><td class='userinfo'><b>mrtux</b>: #theroot<br /><span style='color:#00FF00;'>radiusroot/bec5eb39</span></td><td> zlg, i was going the easy way out and using the peewee orm in python</td></tr>
<tr><td class='userinfo'><b>mrtux</b>: #theroot<br /><span style='color:#00FF00;'>radiusroot/bec5eb39</span></td><td> I took a sql class a while ago, and it is neat what you can do with it</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> ORMs get in the way for me because I care about the SQL they produce. Too much magic confuses me.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> I tried using sqlalchemy a few times, on two separate projects, and can't really wrap my head around it.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> I see its use as hooking up a db query to a set of variables so you can manipulate the data.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> But getting to a query that is efficient by coaxing the ORM is where I have trouble. I already know a lot of SQL so I can probably do a better job expressing what I want in SQL than calling the ORM's API.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> mrtux: how did you feel about ORMs after your class?</td></tr>
<tr><td class='userinfo'><b>mrtux</b>: #theroot<br /><span style='color:#00FF00;'>radiusroot/bec5eb39</span></td><td> zlg, honestly i like them, since it feels like im not working with a database</td></tr>
<tr><td class='userinfo'><b>mrtux</b>: #theroot<br /><span style='color:#00FF00;'>radiusroot/bec5eb39</span></td><td> i'm awful at sql though, and forgot a lot about it.. i can do some basic stuff though</td></tr>
<tr><td class='userinfo'><b>srinivas</b><br /><span style='color:#00FF00;'>49.37.152.236</span></td><td> joined the channel</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> lol we come at it from opposite angles. I learned SQL first through a bunch of slipshod tutorials in the early 2000s.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> Wanted to build my own blogging system.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> Brought it to fruition in 2009-2010, discontinued it by 2012-2013.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> if/when I build another, it'll be powered by make, like Pelican is.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> being able to do shit through a make target is hella convenient.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> just made another breakthrough to render an entire column obsolete.</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> learning about window functions is pretty dope!</td></tr>
<tr><td class='userinfo'><b>zlg</b>: #theroot<br /><span style='color:#00FF00;'>c-73-19-64-189.hsd1.wa.comcast.net</span></td><td> https://sqlite.org/windowfunctions.html</td></tr>
<tr><td class='userinfo'><span style='color:#00FF00;'>cddo.cf</span> ~</td><td> Menchers left: Client closed connection</td></tr>
<tr><td class='userinfo'><span style='color:#00FF00;'>cddo.cf</span> ~</td><td> Pentium44 left: &quot;Pentium44 toggled disconnect; webirc&quot;</td></tr>
<tr><td class='userinfo'><span style='color:#00FF00;'>irc.mrtux.org</span> ~ </td><td> :irc.mrtux.org 001 tux :Welcome to the Internet Relay Network tux!~tux@97-113-50-113.tukw.qwest.net
:irc.mrtux.org 002 tux :Your host is irc.mrtux.org, running version ngircd-25 (x86_64/pc/linux-gnu)
:irc.mrtux.org 003 tux :This server has been started Sun Dec 06 2020 at 04:18:21 (UTC)
:irc.mrtux.org 004 tux irc.mrtux.org ngircd-25 abBcCFiIoqrRswx abehiIklmMnoOPqQrRstvVz
:irc.mrtux.org 005 tux NETWORK=RadiusRoot :is my network name
:irc.mrtux.org 005 tux RFC2812 IRCD=ngIRCd CHARSET=UTF-8 CASEMAPPING=ascii PREFIX=(qaohv)~&amp;@%+ CHANTYPES=#&amp;+ CHANMODES=beI,k,l,imMnOPQRstVz CHANLIMIT=#&amp;+:10 :are supported on this server
:irc.mrtux.org 005 tux CHANNELLEN=50 NICKLEN=12 TOPICLEN=490 AWAYLEN=127 KICKLEN=400 MODES=5 MAXLIST=beI:50 EXCEPTS=e INVEX=I PENALTY :are supported on this server
:irc.mrtux.org 251 tux :There are 9 users and 0 services on 2 servers
:irc.mrtux.org 252 tux 2 :operator(s) online
:irc.mrtux.org 254 tux 7 :channels formed
:irc.mrtux.org 255 tux :I have 4 users, 0 services and 1 servers
:irc.mrtux.org 265 tux 4 5 :Current local users: 4, Max: 5
:irc.mrtux.org 266 tux 9 11 :Current global users: 9, Max: 11
:irc.mrtux.org 250 tux :Highest connection count: 9 (87 connections received)
:irc.mrtux.org 375 tux :- irc.mrtux.org message of the day
:irc.mrtux.org 372 tux :- __________ .___.__ /\ __________ __
:irc.mrtux.org 372 tux :- \______ \_____ __| _/|__|__ __ _____)/ \______ \ ____ _____/ |_
:irc.mrtux.org 372 tux :- | _/\__ \ / __ | | | | \/ ___/ | _// _ \ / _ \ __\
:irc.mrtux.org 372 tux :- | | \ / __ \_/ /_/ | | | | /\___ \ | | ( &lt;_&gt; | &lt;_&gt; ) |
:irc.mrtux.org 372 tux :- |____|_ /(____ /\____ | |__|____//____ &gt; |____|_ /\____/ \____/|__|
:irc.mrtux.org 372 tux :- \/ \/ \/ \/ \/
:irc.mrtux.org 372 tux :-
:irc.mrtux.org 372 tux :- Welcome to Radius' Root! Powered by ngircd, and my MultiServ services bot!
:irc.mrtux.org 372 tux :-
:irc.mrtux.org 372 tux :- Administration: Chris Dorman &lt;cddo@riseup.net&gt;
:irc.mrtux.org 372 tux :-
:irc.mrtux.org 372 tux :- Main channels:
:irc.mrtux.org 372 tux :- #theroot ~ Default Channel, chitchat 'n all that!
:irc.mrtux.org 372 tux :- #freonlinux ~ Freon Linux's official IRC channel!
:irc.mrtux.org 372 tux :-
:irc.mrtux.org 372 tux :- irc.mrtux.org is run by Colin Murphy &lt;colin.murphy@fastmail.com&gt;
:irc.mrtux.org 376 tux :End of MOTD command
</td></tr>
<tr><td class='userinfo'><span style='color:#00FF00;'>irc.mrtux.org</span> ~ </td><td> :tux!~tux@97-113-50-113.tukw.qwest.net JOIN :#theroot
:irc.mrtux.org 332 tux #theroot :Welcome to Radius' Root! ~ https://cddo.cf
:irc.mrtux.org 333 tux #theroot -Server- 1607228313
:irc.mrtux.org 353 tux = #theroot :tux Pentium44 Menchers srinivas @MultiServ meowkov OldCoder zlg mrtux
:irc.mrtux.org 366 tux #theroot :End of NAMES list
</td></tr>
<tr><td class='userinfo'><b>Pentium44</b>: #theroot<br /><span style='color:#00FF00;'>radiusroot/b4440a6d</span></td><td> mrtux, I think the last thing I need is auto connect commands</td></tr>
<tr><td class='userinfo'><b>tux</b> to #theroot:</td><td> YOOO</td></tr>
<tr><td class='userinfo'><b>mrtux</b>: #theroot<br /><span style='color:#00FF00;'>radiusroot/bec5eb39</span></td><td> Oh that's a good idea</td></tr>
<tr><td class='userinfo'><b>Pentium44</b>: #theroot<br /><span style='color:#00FF00;'>radiusroot/b4440a6d</span></td><td> or auto connect message send lmao</td></tr>
<tr><td class='userinfo'><b>Pentium44</b>: #theroot<br /><span style='color:#00FF00;'>radiusroot/b4440a6d</span></td><td> But yeah otherwise</td></tr>
<tr><td class='userinfo'><span style='color:#00FF00;'>irc.mrtux.org</span> ~</td><td> Pentium44 left: &quot;Pentium44 toggled disconnect; webirc&quot;</td></tr>