diff --git a/README.md b/README.md
index b1dfc6d..ba80ac5 100755
--- a/README.md
+++ b/README.md
@@ -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")
diff --git a/config.php b/config.php
index 5f1b828..ec790de 100755
--- a/config.php
+++ b/config.php
@@ -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);
diff --git a/index.php b/index.php
index f0816fc..eff6239 100755
--- a/index.php
+++ b/index.php
@@ -336,7 +336,7 @@ if (!isset($_SESSION['idleirc-user'])) {
}
if(isset($_SESSION['idleirc-pass']) && $userpass != "" && $userpass == $_SESSION['idleirc-pass']) {
- echo "
\n";
+ echo "\n";
echo "\n";
}
} else if(isset($_GET['settings'])) {
@@ -394,7 +394,6 @@ if (!isset($_SESSION['idleirc-user'])) {
echo "Disconnect from server\n";
}
?>
- Clear IRC logs
IRC Logs
Settings
diff --git a/mrtux.log b/mrtux.log
new file mode 100644
index 0000000..2f4136f
--- /dev/null
+++ b/mrtux.log
@@ -0,0 +1,109 @@
+tux ~ | left the server... |
+cddo.cf ~ | :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)~&@%+ CHANTYPES=#&+ CHANMODES=beI,k,l,imMnOPQRstVz CHANLIMIT=#&+: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 :- | | \ / __ \_/ /_/ | | | | /\___ \ | | ( <_> | <_> ) |
+:cddo.cf 372 tux :- |____|_ /(____ /\____ | |__|____//____ > |____|_ /\____/ \____/|__|
+: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
+ |
+cddo.cf ~ | :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
+ |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | remembering PRAGMA lines is a bitch. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | It's necessary to get DELETEs to cascade correctly |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | I continue to be blown away by the new pieces of SQL and schemas I learn. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | 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 [...] |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | Had *NO* clue you could just make up a field using whatever logic you want, in the output. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | Then name the field using the AS keyword. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | A lot of things can be produced with just the DB backend of a piece of software. |
+mrtux: #theroot radiusroot/bec5eb39 | zlg, i was going the easy way out and using the peewee orm in python |
+mrtux: #theroot radiusroot/bec5eb39 | I took a sql class a while ago, and it is neat what you can do with it |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | ORMs get in the way for me because I care about the SQL they produce. Too much magic confuses me. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | I tried using sqlalchemy a few times, on two separate projects, and can't really wrap my head around it. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | I see its use as hooking up a db query to a set of variables so you can manipulate the data. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | 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. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | mrtux: how did you feel about ORMs after your class? |
+mrtux: #theroot radiusroot/bec5eb39 | zlg, honestly i like them, since it feels like im not working with a database |
+mrtux: #theroot radiusroot/bec5eb39 | i'm awful at sql though, and forgot a lot about it.. i can do some basic stuff though |
+srinivas 49.37.152.236 | joined the channel |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | lol we come at it from opposite angles. I learned SQL first through a bunch of slipshod tutorials in the early 2000s. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | Wanted to build my own blogging system. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | Brought it to fruition in 2009-2010, discontinued it by 2012-2013. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | if/when I build another, it'll be powered by make, like Pelican is. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | being able to do shit through a make target is hella convenient. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | just made another breakthrough to render an entire column obsolete. |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | learning about window functions is pretty dope! |
+zlg: #theroot c-73-19-64-189.hsd1.wa.comcast.net | https://sqlite.org/windowfunctions.html |
+cddo.cf ~ | Menchers left: Client closed connection |
+cddo.cf ~ | Pentium44 left: "Pentium44 toggled disconnect; webirc" |
+irc.mrtux.org ~ | :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)~&@%+ CHANTYPES=#&+ CHANMODES=beI,k,l,imMnOPQRstVz CHANLIMIT=#&+: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 :- | | \ / __ \_/ /_/ | | | | /\___ \ | | ( <_> | <_> ) |
+:irc.mrtux.org 372 tux :- |____|_ /(____ /\____ | |__|____//____ > |____|_ /\____/ \____/|__|
+: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 <cddo@riseup.net>
+: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 <colin.murphy@fastmail.com>
+:irc.mrtux.org 376 tux :End of MOTD command
+ |
+irc.mrtux.org ~ | :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
+ |
+Pentium44: #theroot radiusroot/b4440a6d | mrtux, I think the last thing I need is auto connect commands |
+tux to #theroot: | YOOO |
+mrtux: #theroot radiusroot/bec5eb39 | Oh that's a good idea |
+Pentium44: #theroot radiusroot/b4440a6d | or auto connect message send lmao |
+Pentium44: #theroot radiusroot/b4440a6d | But yeah otherwise |
+irc.mrtux.org ~ | Pentium44 left: "Pentium44 toggled disconnect; webirc" |