Cleaned up a bit.

This commit is contained in:
flash 2024-11-26 21:23:25 +00:00
parent 3fdcfa9d57
commit eb62d1b31c
6 changed files with 20 additions and 396 deletions

View file

@ -1,72 +0,0 @@
h1, h3 {
font-weight: 100;
margin: 0px;
}
h1 {
font-size: 3em;
text-shadow: 0px 0px .5em #F1F1F1;
}
h3 {
display: inline-block;
box-shadow: 0px 0px .5em #700;
min-width: 300px;
font-size: 15px;
padding: 2px;
margin: 10px;
background-color: #700;
background-image: linear-gradient(to bottom, #900, #600);
background-image: -moz-linear-gradient(to bottom, #900, #600);
background-image: -webkit-linear-gradient(top, #900, #600);
}
div.copyright {
font-size: 12px;
color: #CCC;
}
form {
margin: 10px;
}
form input[type="text"], form input[type="password"] {
height: 18px;
width: 288px;
}
form input[type="text"] {
border-top-left-radius: 5px;
border-top-right-radius: 5px;
}
form input[type="submit"] {
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
background: #404;
box-shadow: 0px 0px 1em #707 inset;
color: #FFF;
font-weight: 700;
border-color: #808;
}
form *:not(option) {
height: 30px;
display: block;
margin: 1px auto;
width: 300px;
padding: 5px;
border: 1px #888 solid;
background: transparent;
box-shadow: 0px 0px 1em #888 inset
}
a {
color: inherit;
text-decoration: none;
transition: text-shadow .2s;
}
a:hover {
text-shadow: 0px 0px 1em #F1F1F1;
}

View file

@ -328,14 +328,6 @@ class AJAXChat {
return AJAX_CHAT_PATH . '/template/mobile.html';
case 'legacy':
return AJAX_CHAT_PATH . '/template/legacyLogin.html';
case 'banned':
return AJAX_CHAT_PATH . '/template/banned.html';
case 'legacy1':
return AJAX_CHAT_PATH . '/template/~loggedOut.html';
case 'legacy2':
return AJAX_CHAT_PATH . '/template/loggedOut~.html';
case 'legacy3':
return AJAX_CHAT_PATH . '/template/loggedOut.html';
default:
return AJAX_CHAT_PATH . '/template/loggedOutFA.html';
}
@ -355,32 +347,25 @@ class AJAXChat {
}
function hasAccessTo($view) {
if(substr($view, 0, 6) === 'legacy')
return !$this->isLoggedIn();
switch($view) {
case 'legacy':
if($this->isLoggedIn()) {
return false;
}
return true;
case 'banned':
return true;
return !$this->isLoggedIn();
case 'chat':
case 'mobile':
case 'teaser':
if($this->isLoggedIn()) {
return true;
}
return false;
return $this->isLoggedIn();
case 'logs':
if($this->isLoggedIn() && ($this->getUserRole() == AJAX_CHAT_ADMIN || $this->getUserRole() == CMOD || $this->getUserRole() == AJAX_CHAT_MODERATOR || $this->getUserRole() == PURPLE || $this->getUserRole() == DONATOR ||
($this->getConfig('logsUserAccess') &&
($this->getUserRole() == AJAX_CHAT_USER))
)) {
return true;
}
return false;
return $this->isLoggedIn() && (
$this->getUserRole() == AJAX_CHAT_ADMIN
|| $this->getUserRole() == CMOD
|| $this->getUserRole() == AJAX_CHAT_MODERATOR
|| $this->getUserRole() == PURPLE
|| $this->getUserRole() == DONATOR
|| (
$this->getConfig('logsUserAccess')
&& $this->getUserRole() == AJAX_CHAT_USER
)
);
default:
return false;
}
@ -455,16 +440,6 @@ class AJAXChat {
$this->purgeLogs();
}
// Report login to Satori:
/*$boatcom = @fsockopen('marie.railgun.sh', 9064, $errno, $errstr, 5);
if($boatcom) {
$message = sprintf('{sock}[i][url=https://flashii.net/profile.php?u=%d][b]%s[/b][/url] logged into [url=https://flash.moe/chat/]Flashii Chat Legacy[/url].[/i]', $userData['userID'], $userData['userName']);
$message = chr(0xF) . hash_hmac('sha256', $message, 'lol glad i caught this, that could\'ve been pretty funny if i forgot to remove this') . $message . chr(0xF);
fwrite($boatcom, $message);
fflush($boatcom);
fclose($boatcom);
}*/
return true;
}
@ -494,20 +469,21 @@ class AJAXChat {
if($channelName !== null) {
$channelID = $this->getChannelIDFromChannelName($channelName);
// channelName might need encoding conversion:
if($channelID === null) {
if($channelID === null)
$channelID = $this->getChannelIDFromChannelName(
$this->trimChannelName($channelName, $this->getConfig('contentEncoding'))
);
}
$this->trimChannelName($channelName, $this->getConfig('contentEncoding'))
);
}
}
// Validate the resulting channelID:
if(!$this->validateChannel($channelID)) {
if($this->getChannel() !== null) {
if($this->getChannel() !== null)
return $this->getChannel();
}
return $this->getConfig('defaultChannelID');
}
return $channelID;
}

View file

@ -1,65 +0,0 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<title>[LANG]title[/LANG] // Banned</title>
<link rel="shortcut icon" href="http://flashii.net/favicon.ico" />
<style type="text/css">
body {
padding:0;
margin:0;
background:black;
}
</style>
[STYLE_SHEETS/]
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie5-6.css"/>
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/topmenu.css" />
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="/?common=config" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<div id="loginContent">
<div id="loginHeadlineContainer">
<h1>[LANG]title[/LANG] // Banned</h1>
</div>
<div id="loginFormContainer">
<div style="color:red;">Your IP is banned from accessing this Chat.</div>
</div>
<!--
Please retain the full copyright notice below including the link to blueimp.net.
This not only gives respect to the amount of time given freely by the developer
but also helps build interest, traffic and use of AJAX Chat.
Thanks,
Sebastian Tschan
//-->
<div id="copyright"><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
</div>
</body>
</html>

View file

@ -1,72 +0,0 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta charset="utf-8" />
<title>[CONF]flashiiString[/CONF] - Chat</title>
<link rel="shortcut icon" href="favicon.ico" />
<link rel="stylesheet" type="text/css" href="css/mio.css" />
<style>
.spoiler{
background: black;
}
.spoiler:hover{
background: #FBEEFF !important;
}
select,input[type="text"],input[type="password"] {
width: 190px;
}
div.mioboxcontent {
text-align: center;
padding-left: 0px !important;
}
</style>
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="/?common=config" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<a href="/"><img class="logo" src="images/pixel.png" alt="[LANG]title[/LANG]" /></a><br />
<div id="errorContainer">[ERROR_MESSAGES/]<noscript><h3 class="miotitle">[LANG]requiresJavaScript[/LANG]</h3></noscript></div>
<form id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<div class="mioboards">
<h3 class="miotitle">[LANG]title[/LANG] Login</h3>
<div class="mioboxcontent">
<input type="hidden" name="login" id="loginField" value="login"/>
<input type="hidden" name="redirect" id="redirectField" value="[REDIRECT_URL/]"/>
<input disabled="disabled" type="text" name="userName" id="userNameField" maxlength="[USER_NAME_MAX_LENGTH/]" placeholder="[LANG]userName[/LANG]" />
<input disabled="disabled" type="password" name="password" id="passwordField" placeholder="[LANG]password[/LANG]" />
<select name="channelName" id="channelField">[CHANNEL_OPTIONS/]</select>
<select id="languageSelection" name="lang" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select>
<input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/>
<br />[SANDSTORM/]<br />
</div>
</div>
</form>
<div class="navbar">
[MENU_BAR/]
</div>
[COPYRIGHT/]
</body>
</html>

View file

@ -1,61 +0,0 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-gb">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
<title>[LANG]title[/LANG]</title>
<link rel="shortcut icon" href="/favicon.ico" />
<!--link rel="stylesheet" type="text/css" href="//cdn.flashii.net/global.css" /-->
<link rel="stylesheet" type="text/css" href="css/chatlogin.css" />
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="/?common=config" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<div id="container">
<div id="content">
<h1>[LANG]title[/LANG]</h1>
<div id="errorContainer">
[ERROR_MESSAGES/]
<noscript>
<h3>[LANG]requiresJavaScript[/LANG]</h3>
</noscript>
</div>
<form id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<input type="hidden" name="login" id="loginField" value="login"/>
<input type="hidden" name="redirect" id="redirectField" value="[REDIRECT_URL/]"/>
<input disabled="disabled" type="text" name="userName" id="userNameField" maxlength="[USER_NAME_MAX_LENGTH/]" placeholder="[LANG]userName[/LANG] (e.g. [CHAT_BOT_NAME/])" />
<input disabled="disabled" type="password" name="password" id="passwordField" placeholder="[LANG]password[/LANG]" />
<select name="channelName" id="channelField">[CHANNEL_OPTIONS/]</select>
<input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/>
</form>
<div class="copyright">
&copy;Flashii Media 2013-2014.<br />
Based on <a href="http://blueimp.net/ajax" target="_blank">AJAX Chat</a> by <a href="http://blueimp.net" target="_blank">blueimp</a>.
</div>
</div>
</div>
</body>
</html>

View file

@ -1,82 +0,0 @@
<?xml version="1.0" encoding="[CONTENT_ENCODING/]"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="[LANG_CODE/]" lang="[LANG_CODE/]" dir="[BASE_DIRECTION/]">
<head>
<meta http-equiv="Content-Type" content="[CONTENT_TYPE/]" />
<title>[LANG]title[/LANG]</title>
<link rel="shortcut icon" href="http://flashii.net/favicon.ico" />
<style type="text/css">
body {
padding:0;
margin:0;
}
</style>
[STYLE_SHEETS/]
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="css/ie5-6.css"/>
<![endif]-->
<link rel="stylesheet" type="text/css" href="css/topmenu.css" />
<script src="js/chat.js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/[LANG_CODE/].js" type="text/javascript" charset="UTF-8"></script>
<script src="js/lang/kick.js" type="text/javascript" charset="UTF-8"></script>
<script src="/?common=config" type="text/javascript" charset="UTF-8"></script>
<script type="text/javascript">
// <![CDATA[
function initializeLoginPage() {
document.getElementById('userNameField').focus();
if(!ajaxChat.isCookieEnabled()) {
var node = document.createElement('div');
var text = document.createTextNode(ajaxChatLang['errorCookiesRequired']);
node.appendChild(text);
document.getElementById('errorContainer').appendChild(node);
}
}
ajaxChatConfig.sessionName = '[SESSION_NAME/]';
ajaxChatConfig.cookieExpiration = parseInt('[COOKIE_EXPIRATION/]');
ajaxChatConfig.cookiePath = '[COOKIE_PATH/]';
ajaxChatConfig.cookieDomain = '[COOKIE_DOMAIN/]';
ajaxChatConfig.cookieSecure = '[COOKIE_SECURE/]';
ajaxChat.init(ajaxChatConfig, ajaxChatLang, true, true, false);
// ]]>
</script>
</head>
<body onload="initializeLoginPage();">
<div id="loginContent">
<div id="loginHeadlineContainer">
<h1>[LANG]title[/LANG]</h1>
</div>
<form id="loginForm" action="[LOGIN_URL/]" method="post" enctype="application/x-www-form-urlencoded">
<div id="loginFormContainer">
<div>Welcome to Flashii Chat! Please register if you haven't yet.</div>
<input type="hidden" name="login" id="loginField" value="login"/>
<input type="hidden" name="redirect" id="redirectField" value="[REDIRECT_URL/]"/>
<div><label for="userNameField">[LANG]userName[/LANG]:</label><br />
<input disabled="disabled" type="text" name="userName" id="userNameField" maxlength="[USER_NAME_MAX_LENGTH/]"/></div>
<div><label for="passwordField">[LANG]password[/LANG]*:</label><br />
<input disabled="disabled" type="password" name="password" id="passwordField"/></div>
<div><label for="channelField">[LANG]channel[/LANG]:</label><br />
<select name="channelName" id="channelField">[CHANNEL_OPTIONS/]</select></div>
<div><label for="languageSelection">[LANG]language[/LANG]:</label><br />
<select id="languageSelection" name="lang" onchange="ajaxChat.switchLanguage(this.value);">[LANGUAGE_OPTIONS/]</select></div>
<div><input type="submit" name="submit" id="loginButton" value="[LANG]login[/LANG]"/> <input type="button" onclick="javascript:window.location = 'register.php'" id="registerButton" value="Register"/></div>
<div id="loginRegisteredUsers">* [LANG]registeredUsers[/LANG]</div>
</div>
</form>
<div id="errorContainer">[ERROR_MESSAGES/]<noscript><div>[LANG]requiresJavaScript[/LANG]</div></noscript></div>
<!--
Please retain the full copyright notice below including the link to blueimp.net.
This not only gives respect to the amount of time given freely by the developer
but also helps build interest, traffic and use of AJAX Chat.
Thanks,
Sebastian Tschan
//-->
<div id="copyright"><a href="/">Chat</a> - <a href="/register">Register</a> - <a href="/rules">Rules</a> - <a href="/staff">Staff</a> - <a href="/bans">Bans</a> - <a href="/users">Memberlist</a><br /><br /><br /><a href="https://blueimp.net/ajax/">AJAX Chat</a> &copy; <a href="https://blueimp.net">blueimp.net</a></div>
</div>
</body>
</html>