Call this v1.5.1

This commit is contained in:
Pentium44 2021-01-03 18:23:29 -08:00
parent 8f8f09e7fe
commit 6b3032fec0
3 changed files with 17 additions and 2 deletions

View File

@ -60,6 +60,10 @@ Read-Write access for working directory
#### Changelog
* v1.5.1:
* Add /archive, allows to keep IRC logs while clearing chat history.
* Minor fixes / tweaks
* v1.5.0:
* Polishing up, adding some last minute fixes.
* Tweaks on irc.php

View File

@ -213,7 +213,18 @@ if (isset($_GET['msg']) && $_GET['msg']!="" && isset($_GET['nick']) && $_GET['ni
include("users/" . $nick . ".php");
if ($_GET['do']=="clearlog") {
if(file_exists("users/" . $nick . ".log") && ($acctpass == $userpass)) {
unlink("users/" . $nick . ".log");
unlink("users/$nick.log");
}
if(file_exists("users/" . $nick . ".logcount") && ($acctpass == $userpass)) {
$archived = file_get_contents("users/$nick.logcount");
for($x = 1; $x <= $archived; $x++) {
if(file_exists("users/$nick.$x.log")) {
unlink("users/$nick.$x.log");
}
}
unlink("users/$nick.logcount");
}
} else if($_GET['do']=="login" && !file_exists("users/.$username.pingfile") && ($acctpass == $userpass)) { // Is user asking for login?
// Join channel

View File

@ -5,6 +5,6 @@
// https://github.com/Pentium44/idleirc
///////
$version = "1.5.0"; // IdleIRC version
$version = "1.5.1"; // IdleIRC version
?>