Tweaks
This commit is contained in:
parent
023e18891e
commit
ea6ded0e54
0
.gitignore
vendored
Normal file → Executable file
0
.gitignore
vendored
Normal file → Executable 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">
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user