Update chat and home
This commit is contained in:
parent
9f4ba9a1d3
commit
0c6679d054
6 changed files with 12 additions and 4 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1 +1,2 @@
|
|||
3ds/acc/data
|
||||
3ds/acc/data
|
||||
3ds/chat/data
|
||||
|
|
@ -1 +1 @@
|
|||
{"name":"KillerBot 6000","desc":"A room with very harsh moderation. Proceed with caution!","max":51,"color":"#e0e0e0","whispersenabled":true,"forbiddenCommands":["\/milk","\/bal"],"msg":[{"cont":"A","time":1650900189,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900189,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900188,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900188,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900188,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900187,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900187,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"AAAA","time":1650900187,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"AAAAAA","time":1650900186,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"AAAAAA","time":1650900184,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900182,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"AAAA","time":1650900181,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"AA","time":1650900180,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900180,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900180,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"a","time":1650900179,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"A","time":1650900179,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"Aa","time":1650900179,"type":"message","color":"red","visibility":"all","from":"HxOr1337"},{"cont":"balls","time":1650900174,"type":"message","color":"red","visibility":"all","from":"HxOr1337"}]}
|
||||
{"name":"KillerBot 6000","desc":"A room with very harsh moderation. Proceed with caution!","max":51,"color":"#e0e0e0","whispersenabled":true,"forbiddenCommands":["\/milk","\/bal"],"msg":[{"cont":"haxxor","time":1650907303,"type":"message","color":"red","visibility":"all","from":"HxOr1337"}]}
|
||||
|
|
@ -122,11 +122,11 @@ if(isset($_GET["room"])){
|
|||
</head>
|
||||
<body onload="getfullchat(); setInterval(function(){chatload()},1000);">
|
||||
<div id="contenttop">
|
||||
Online List:
|
||||
<a href="../">Back</a> Online List:
|
||||
</div>
|
||||
<div id="contentbot">
|
||||
<div id="chatscreen"></div>
|
||||
<input id="msg" onkeydown="check(event)"></input><button onclick="sendmess()">Send</button>
|
||||
<?php if(isset($_SESSION["ts_user"])){?><input id="msg" onkeydown="check(event)"></input><button onclick="sendmess()">Send</button><?php } else { ?> You have to be logged in! <a href="../acc/index.php">Login here</a><?php }?>
|
||||
</div>
|
||||
<?php } else {
|
||||
header("Location: index.php?room=original");
|
||||
|
|
|
|||
|
|
@ -1,4 +1,10 @@
|
|||
<?php
|
||||
function process($txt){
|
||||
$arr = explode("\r\n", file_get_contents("badwords.txt"));
|
||||
|
||||
foreach ($arr as $word)
|
||||
{
|
||||
$txt = str_ireplace($word, "****", $txt);
|
||||
}
|
||||
return htmlspecialchars($txt);
|
||||
}
|
||||
|
|
@ -50,6 +50,7 @@ session_start();
|
|||
$_SESSION["ts_points"] = $jsonD["points"];
|
||||
?>Welcome, <?php echo "<a href='acc/acc.php'>" . $_SESSION["ts_user"] . "</a>"; ?>, you have <?php echo $_SESSION["ts_points"] . " points!"; } else { ?><a href="acc/log.php">Login</a><?php } ?></center>
|
||||
<a href="games/"><img src="../images/games.png"></img></a>
|
||||
<a href="chat/"><img src="../images/chat.png"></img></a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
BIN
images/chat.png
Normal file
BIN
images/chat.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
Loading…
Add table
Add a link
Reference in a new issue