master
Pentium44 2020-12-09 18:54:05 -08:00
parent 023e18891e
commit ea6ded0e54
5 changed files with 3 additions and 5 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

View File

@ -48,8 +48,8 @@ function loginForm(){
//Logout
if (isset($_GET['do']) && $_GET['do']=="logout") {
$_SESSION['cwchat-user'] = null;
$_SESSION['cwchat-channel'] = null;
$_SESSION['idleirc-user'] = null;
$_SESSION['idleirc-channel'] = null;
}
if (isset($_GET['register']) && $_GET['register'] == "go") {
@ -98,8 +98,6 @@ if (isset($_GET['do']) && $_GET['do']=="login" && isset($_POST['submitBtn']) &&
}
}
//if(!isset($_SESSION['cwchat-user'])) { header("Location: ?do=login"); }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">

View File

@ -116,7 +116,7 @@ if (isset($_GET['msg']) && $_GET['msg']!="" && isset($_GET['nick']) && $_GET['ni
}
} else if($_GET['do']=="login" && !file_exists(".$nick.pingfile") && ($acctpass == $userpass)) { // Is user asking for login?
// Join channel
if(!isset($_SESSION['cwchat-channel'])) {
if(!isset($_SESSION['idleirc-channel'])) {
file_put_contents(".$nick.push", "JOIN " . $default_channel . "\n");
} else {
file_put_contents(".$nick.push", "JOIN " . $channel . "\n");

0
style.css Normal file → Executable file
View File